Interface ITextIterator
This iterator can be used to iterate in a text editing fashion in the edit control.
Inherited Members
Namespace: SdlSdl.DesktopEditorEditorApi
Assembly: Sdl.DesktopEditor.EditorApi.dll
Syntax
public interface ITextIterator : ICloneable
Properties
CurrentCharacter
The text character at the current position, or null
if none.
Declaration
char? CurrentCharacter { get; }
Property Value
Type | Description |
---|---|
char |
CurrentPosition
The current position of the iterator.
Declaration
Position CurrentPosition { get; set; }
Property Value
Type | Description |
---|---|
Position |
EditControl
The edit control the iterator refers to.
Declaration
IEditControl EditControl { get; }
Property Value
Type | Description |
---|---|
IEditControl |
IsWordStart
true
if the current position can be considered the start of a word.
Declaration
bool IsWordStart { get; }
Property Value
Type | Description |
---|---|
bool |
See Also
Methods
Move(Move)
Move the iterator in the specified direction relative to the current position, from the edit control's perspective.
Declaration
bool Move(Move typeOfMove)
Parameters
Type | Name | Description |
---|---|---|
Move | typeOfMove |
Returns
Type | Description |
---|---|
bool |
|