Class DeleteNodeOperation
Default implementation of the IDeleteNodeOperation interface.
Inheritance
Object
DeleteNodeOperation
Inherited Members
Object.Equals(Object)
Object.Equals(Object, Object)
Object.ReferenceEquals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
Namespace: Sdl.DesktopEditor.EditorApi.Implementation
Assembly: Sdl.DesktopEditor.EditorApi.dll
Syntax
public class DeleteNodeOperation : IDeleteNodeOperation, IAbstractEditOperation
Constructors
DeleteNodeOperation(INode, IAbstractContainerNode, Int32)
Construction from a deleted node and its location before it was deleted.
Declaration
public DeleteNodeOperation(INode deletedNode, IAbstractContainerNode parent, int indexInParent)
Parameters
| Type | Name | Description |
|---|---|---|
| INode | deletedNode | |
| IAbstractContainerNode | parent | |
| Int32 | indexInParent |
Properties
IndexInParent
The index of the node before it was deleted from its parent container.
Declaration
public int IndexInParent { get; set; }
Property Value
| Type | Description |
|---|---|
| Int32 |
Node
The deleted node.
Declaration
public INode Node { get; set; }
Property Value
| Type | Description |
|---|---|
| INode |
Parent
The parent container the node was deleted from.
Declaration
public IAbstractContainerNode Parent { get; set; }
Property Value
| Type | Description |
|---|---|
| IAbstractContainerNode |
Methods
AcceptVisitor(IEditOperationVisitor)
Declaration
public void AcceptVisitor(IEditOperationVisitor visitor)
Parameters
| Type | Name | Description |
|---|---|---|
| IEditOperationVisitor | visitor |
ToString()
Returns a clear text description of the operation.
Declaration
public override string ToString()
Returns
| Type | Description |
|---|---|
| String |
Overrides
System.Object.ToString()