Class EditOperationConsolidatorVisitor
This class can be used to consolidate a sequence of edit operations, to create the short list of edits that accomplishes the same result.
Implements
Inherited Members
Namespace: SdlSdl.DesktopEditorEditorApiImplementation
Assembly: Sdl.DesktopEditor.EditorApi.dll
Syntax
public class EditOperationConsolidatorVisitor : IEditOperationVisitor
Remarks
Used internally in the edit control to construct a consolidated list of operations passed e.g. to the ContentChanged event.
To use, apply the object to each edit operation in sequence, by calling AcceptVisitor(IEditOperationVisitor). When done the list of consolidated edit operations can be accessed from the ConsolidatedOperations property.
Constructors
EditOperationConsolidatorVisitor()
Constructs a new instance ready for use.
Declaration
public EditOperationConsolidatorVisitor()
Properties
ConsolidatedOperations
The list of consolidated edit operations.
Declaration
public List<IAbstractEditOperation> ConsolidatedOperations { get; set; }
Property Value
Type | Description |
---|---|
ListIAbstractEditOperation |
Methods
VisitChangeGhostStatusOperation(IChangeGhostStatusOperation)
Consolidate a subsequent ghost status change operation with preceding operations.
Declaration
public void VisitChangeGhostStatusOperation(IChangeGhostStatusOperation operation)
Parameters
Type | Name | Description |
---|---|---|
IChangeGhostStatusOperation | operation |
VisitChangeTextOperation(IChangeTextOperation)
Consolidate a subsequent text change operation with preceding operations.
Declaration
public void VisitChangeTextOperation(IChangeTextOperation operation)
Parameters
Type | Name | Description |
---|---|---|
IChangeTextOperation | operation |
VisitDeleteNodeOperation(IDeleteNodeOperation)
Consolidate a subsequent delete operation with preceding operations.
Declaration
public void VisitDeleteNodeOperation(IDeleteNodeOperation operation)
Parameters
Type | Name | Description |
---|---|---|
IDeleteNodeOperation | operation |
VisitInsertNodeOperation(IInsertNodeOperation)
Consolidate a subsequent insert operation with preceding operations.
Declaration
public void VisitInsertNodeOperation(IInsertNodeOperation operation)
Parameters
Type | Name | Description |
---|---|---|
IInsertNodeOperation | operation |