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


In This Topic
    SetCaretPos(NTextPosition,Boolean,Boolean) Method
    In This Topic
    Sets the caret position. Optionally selects the enclosed text. Optionally updates the XGuideCaretPos for PrevLine/NextLine navigaiton.
    Syntax
    'Declaration
     
    
    Public Overloads Sub SetCaretPos( _
       ByVal pos As NTextPosition, _
       ByVal select As System.Boolean, _
       ByVal updateXGuide As System.Boolean _
    ) 
    'Usage
     
    
    Dim instance As NTextBox
    Dim pos As NTextPosition
    Dim select As System.Boolean
    Dim updateXGuide As System.Boolean
     
    instance.SetCaretPos(pos, select, updateXGuide)
    public void SetCaretPos( 
       NTextPosition pos,
       System.bool select,
       System.bool updateXGuide
    )

    Parameters

    pos
    select
    updateXGuide
    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