Class AbstractTextIterator
Base class for text iterator implementation.
Inherited Members
Namespace: SdlSdl.DesktopEditorEditorApiImplementation
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 |
---|---|
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 |
---|---|
bool |
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 |
---|---|
object |
Move(Move)
move the itearator
Declaration
public abstract bool Move(Move typeOfMove)
Parameters
Type | Name | Description |
---|---|---|
Move | typeOfMove |
Returns
Type | Description |
---|---|
bool |