Class ChangeTextOperation
Default implementation of the IChange
Inherited Members
Namespace: Sdl.DesktopEditor .EditorApi .Implementation
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
Properties
Node
The affected node.
Declaration
public ITextNode Node { get; set; }
Property Value
Type | Description |
---|---|
IText |
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 |
---|---|---|
IEdit |
visitor |
ToString()
Returns a clear text description of the operation.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
string |