Class ChangeTextOperation
Default implementation of the IChangeTextOperation interface.
Inherited Members
Namespace: SdlSdl.DesktopEditorEditorApiImplementation
Assembly: Sdl.DesktopEditor.EditorApi.dll
Syntax
public class ChangeTextOperation : IChangeTextOperation, IAbstractEditOperation
Constructors
ChangeTextOperation(ITextNode, string)
Construction from a text node and its text before the change.
Declaration
public ChangeTextOperation(ITextNode node, string textBefore)
Parameters
Type | Name | Description |
---|---|---|
ITextNode | node | |
string | textBefore |
Properties
Node
The affected node.
Declaration
public ITextNode Node { get; set; }
Property Value
Type | Description |
---|---|
ITextNode |
TextBefore
Text before it was changed.
Declaration
public string TextBefore { get; set; }
Property Value
Type | Description |
---|---|
string |
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 |