Class CharChainSwapOperation
Swap operation for a chain of characters.
public sealed class CharChainSwapOperation : CharChainOperation, IHasToArgument
- Inheritance
-
CharChainSwapOperation
- Implements
- Inherited Members
Constructors
CharChainSwapOperation()
Initializes a new instance of the CharChainSwapOperation class.
public CharChainSwapOperation()
Properties
To
Gets or sets the reference position.
public int To { get; set; }
Property Value
ToAsIndex
Gets or sets a value indicating whether To refers to an index rather than a chain node ID.
public bool ToAsIndex { get; set; }
Property Value
ToRun
Gets or sets the run of characters from To.
public int ToRun { get; set; }
Property Value
Methods
Execute(ChainOperationContext<char>)
Executes this operation on the specified context.
public override void Execute(ChainOperationContext<char> context)
Parameters
context
ChainOperationContext<char>The context.
Exceptions
- ArgumentNullException
context
- InvalidOperationException
non-zero run
ToString()
Converts to string.
public override string ToString()