Version

GetSubstring(Int32,Int32) Method

Retrieves a substring from this controls text, similar to the System.String.Substring(System.Int32) method. The substring starts at a specified character position and has a specified length.
Syntax
'Declaration
 
Public Overloads Function GetSubstring( _
   ByVal startIndex As Integer, _
   ByVal length As Integer _
) As String
public string GetSubstring( 
   int startIndex,
   int length
)

Parameters

startIndex
The zero-based starting character position of a substring in this instance.
length
The number of characters in the substring.

Return Value

A System.String equivalent to the substring of length length that begins at startIndex in this instance, or System.String.Empty if startIndex is equal to the length of this instance and length is zero.
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