Class DeleteNodeOperation
Default implementation of the IDeleteNodeOperation interface.
Inherited Members
Namespace: SdlSdl.DesktopEditorEditorApiImplementation
Assembly: Sdl.DesktopEditor.EditorApi.dll
Syntax
public class DeleteNodeOperation : IDeleteNodeOperation, IAbstractEditOperation
Constructors
DeleteNodeOperation(INode, IAbstractContainerNode, int)
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 | |
int | 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 |
---|---|
int |
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 |