Class ChangeTextOperation
Default implementation of the IChangeTextOperation interface.
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, IAbstractEditOperationConstructors
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 | |
| System.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 | 
|---|---|
| System.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 | 
|---|---|
| System.String | 
Overrides
System.Object.ToString()