OpenTypeMethods.Substring Method

Definition

Returns the substring by using the specified starting index.

Overloads

Substring(Object, Object)

Returns the substring after the specified starting index location.

Substring(Object, Object, Object)

Returns the substring of a specific length after the specified starting index location.

Substring(Object, Object)

Returns the substring after the specified starting index location.

public:
 static System::Object ^ Substring(System::Object ^ targetString, System::Object ^ startIndex);
public static object Substring (object targetString, object startIndex);
static member Substring : obj * obj -> obj
Public Shared Function Substring (targetString As Object, startIndex As Object) As Object

Parameters

targetString
Object

The string from which to return the substring.

startIndex
Object

The starting index for the substring.

Returns

The substring.

Remarks

The Substring method returns all characters from startIndex through the end of the targetString.

Applies to

Substring(Object, Object, Object)

Returns the substring of a specific length after the specified starting index location.

public:
 static System::Object ^ Substring(System::Object ^ targetString, System::Object ^ startIndex, System::Object ^ length);
public static object Substring (object targetString, object startIndex, object length);
static member Substring : obj * obj * obj -> obj
Public Shared Function Substring (targetString As Object, startIndex As Object, length As Object) As Object

Parameters

targetString
Object

The string from which to return the substring.

startIndex
Object

The starting index for the substring.

length
Object

The length of the substring.

Returns

The substring.

Remarks

The Substring method returns the length number of characters from startIndex through the end of the targetString.

Applies to