Lingua

OpenTypeMethods.Substring Metodo

Definizione

Restituisce la sottostringa utilizzando l'indice iniziale specificato.

Overload

Nome Descrizione
Substring(Object, Object)

Restituisce la sottostringa dopo la posizione di indice iniziale specificata.

Substring(Object, Object, Object)

Restituisce la sottostringa di una lunghezza specifica dopo la posizione di indice iniziale specificata.

Substring(Object, Object)

Restituisce la sottostringa dopo la posizione di indice iniziale specificata.

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

Parametri

targetString
Object

Stringa da cui restituire la sottostringa.

startIndex
Object

Indice iniziale per la sottostringa.

Valori restituiti

Sottostringa.

Commenti

Il Substring metodo restituisce tutti i caratteri dalla startIndex fine dell'oggetto targetString.

Si applica a

Substring(Object, Object, Object)

Restituisce la sottostringa di una lunghezza specifica dopo la posizione di indice iniziale specificata.

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

Parametri

targetString
Object

Stringa da cui restituire la sottostringa.

startIndex
Object

Indice iniziale per la sottostringa.

length
Object

Lunghezza della sottostringa.

Valori restituiti

Sottostringa.

Commenti

Il Substring metodo restituisce il length numero di caratteri dalla startIndex fine dell'oggetto targetString.

Si applica a