Class ChangeTextOperation
Default implementation of the IChangeTextOperation interface.
Inheritance
Object
ChangeTextOperation
Inherited Members
Object.Equals(Object)
Object.Equals(Object, Object)
Object.ReferenceEquals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
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
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 |
Overrides
System.Object.ToString()