Nevron Open Vision Documentation
Nevron.Nov.UI Namespace / NTextBox Class / SetCaretPos Method / SetCaretPos(NTextPosition,Boolean) Method


In This Topic
    SetCaretPos(NTextPosition,Boolean) Method
    In This Topic
    Sets the caret position. Optionally selects the text enclosed in the prev select caret position and the new one. Updates the caret XGuideCaretPos position.
    Syntax
    'Declaration
     
    
    Public Overloads Sub SetCaretPos( _
       ByVal pos As NTextPosition, _
       ByVal select As System.Boolean _
    ) 
    'Usage
     
    
    Dim instance As NTextBox
    Dim pos As NTextPosition
    Dim select As System.Boolean
     
    instance.SetCaretPos(pos, select)
    public void SetCaretPos( 
       NTextPosition pos,
       System.bool select
    )

    Parameters

    pos
    select
    Requirements

    Target Platforms: Windows 11, Windows 10, Windows 7, Windows Server 2019, Windows Server 2016, Windows Server 2012 R2, Windows Server 2012, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later)

    See Also