Class AbstractTextIterator
Base class for text iterator implementation.
Inheritance
System.Object
AbstractTextIterator
Inherited Members
System.Object.ToString()
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 abstract class AbstractTextIterator : ITextIterator, ICloneable
Constructors
AbstractTextIterator(IEditControl, Position)
Default construction - from an edit control and a start position.
Declaration
protected AbstractTextIterator(IEditControl editControl, Position startPosition)
Parameters
Type | Name | Description |
---|---|---|
IEditControl | editControl | |
Position | startPosition |
AbstractTextIterator(AbstractTextIterator)
Constructor used by cloning. Clones the position.
Declaration
protected AbstractTextIterator(AbstractTextIterator other)
Parameters
Type | Name | Description |
---|---|---|
AbstractTextIterator | other |
Properties
CurrentCharacter
get current character, if any
Declaration
public abstract char? CurrentCharacter { get; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Char> |
CurrentPosition
set/get the current position
Declaration
public virtual Position CurrentPosition { get; set; }
Property Value
Type | Description |
---|---|
Position |
EditControl
get the edit control
Declaration
public virtual IEditControl EditControl { get; }
Property Value
Type | Description |
---|---|
IEditControl |
IsWordStart
calls the edit control to determine if the position is a word start.
Declaration
public virtual bool IsWordStart { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
Methods
Clone()
Clone the iterator - the clone should reference the same position but be possible to move without affecting this iterator.
Declaration
public abstract object Clone()
Returns
Type | Description |
---|---|
System.Object |
Move(Move)
move the itearator
Declaration
public abstract bool Move(Move typeOfMove)
Parameters
Type | Name | Description |
---|---|---|
Move | typeOfMove |
Returns
Type | Description |
---|---|
System.Boolean |
Implements
System.ICloneable