Version

VerifySelStartAndSelLength Method

Adjusts selStart and SelLength do that they are valid values based on the length of the text.
Syntax
'Declaration
 
Public Shared Sub VerifySelStartAndSelLength( _
   ByVal text As String, _
   ByRef startingIndex As Integer, _
   ByRef selectionLength As Integer _
) 
public static void VerifySelStartAndSelLength( 
   string text,
   ref int startingIndex,
   ref int selectionLength
)

Parameters

text
The text
startingIndex
The proposed starting index of the selected text.
selectionLength
The proposed length of text to be selected.
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also