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.
Inheritance
Implements
Inherited Members
Namespace: Sdl.DesktopEditor.EditorApi.Implementation
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 Content
To use, apply the object to each edit operation in sequence, by calling
Accept
Constructors
EditOperationConsolidatorVisitor()
Constructs a new instance ready for use.
Declaration
public EditOperationConsolidatorVisitor()
Remarks
Used internally in the edit control to construct a consolidated list of operations
passed e.g. to the Content
To use, apply the object to each edit operation in sequence, by calling
Accept
Properties
ConsolidatedOperations
The list of consolidated edit operations.
Declaration
public List<IAbstractEditOperation> ConsolidatedOperations { get; set; }
Property Value
Type | Description |
---|---|
List<IAbstract |
Remarks
Used internally in the edit control to construct a consolidated list of operations
passed e.g. to the Content
To use, apply the object to each edit operation in sequence, by calling
Accept
Methods
VisitChangeGhostStatusOperation(IChangeGhostStatusOperation)
Consolidate a subsequent ghost status change operation with preceding operations.
Declaration
public void VisitChangeGhostStatusOperation(IChangeGhostStatusOperation operation)
Parameters
Type | Name | Description |
---|---|---|
IChange |
operation |
Remarks
Used internally in the edit control to construct a consolidated list of operations
passed e.g. to the Content
To use, apply the object to each edit operation in sequence, by calling
Accept
VisitChangeTextOperation(IChangeTextOperation)
Consolidate a subsequent text change operation with preceding operations.
Declaration
public void VisitChangeTextOperation(IChangeTextOperation operation)
Parameters
Type | Name | Description |
---|---|---|
IChange |
operation |
Remarks
Used internally in the edit control to construct a consolidated list of operations
passed e.g. to the Content
To use, apply the object to each edit operation in sequence, by calling
Accept
VisitDeleteNodeOperation(IDeleteNodeOperation)
Consolidate a subsequent delete operation with preceding operations.
Declaration
public void VisitDeleteNodeOperation(IDeleteNodeOperation operation)
Parameters
Type | Name | Description |
---|---|---|
IDelete |
operation |
Remarks
Used internally in the edit control to construct a consolidated list of operations
passed e.g. to the Content
To use, apply the object to each edit operation in sequence, by calling
Accept
VisitInsertNodeOperation(IInsertNodeOperation)
Consolidate a subsequent insert operation with preceding operations.
Declaration
public void VisitInsertNodeOperation(IInsertNodeOperation operation)
Parameters
Type | Name | Description |
---|---|---|
IInsert |
operation |
Remarks
Used internally in the edit control to construct a consolidated list of operations
passed e.g. to the Content
To use, apply the object to each edit operation in sequence, by calling
Accept