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