Search Results for

    Show / Hide Table of Contents

    Interface ITextIterator

    This iterator can be used to iterate in a text editing fashion in the edit control.

    Inherited Members
    System.ICloneable.Clone()
    Namespace: Sdl.DesktopEditor.EditorApi
    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
    System.Nullable<System.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
    System.Boolean
    See Also
    IsWordStart(Position)

    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
    System.Boolean

    true if the move was successful

    Extension Methods

    WindowsControlUtils.ForWindowFromFrameworkElement(Object, Action<Window>)

    On this page

    • Properties
      • CurrentCharacter
      • CurrentPosition
      • EditControl
      • IsWordStart
    • Methods
      • Move(Move)
    • Extension Methods
    Back to top Generated by DocFX