Vector2.ToString Metodo
Definizione
Overload
ToString() |
Restituisce la rappresentazione di stringa dell'istanza corrente usando la formattazione predefinita.Returns the string representation of the current instance using default formatting. |
ToString(String) |
Restituisce la rappresentazione di stringa dell'istanza corrente usando la stringa di formato specificata per formattare i singoli elementi.Returns the string representation of the current instance using the specified format string to format individual elements. |
ToString(String, IFormatProvider) |
Restituisce la rappresentazione di stringa dell'istanza corrente usando la stringa di formato specificata per formattare i singoli elementi e il provider di formato specificato per definire la formattazione specifica delle impostazioni cultura.Returns the string representation of the current instance using the specified format string to format individual elements and the specified format provider to define culture-specific formatting. |
ToString()
Restituisce la rappresentazione di stringa dell'istanza corrente usando la formattazione predefinita.Returns the string representation of the current instance using default formatting.
public:
override System::String ^ ToString();
public override string ToString ();
override this.ToString : unit -> string
Public Overrides Function ToString () As String
Restituisce
Rappresentazione di stringa dell'istanza corrente.The string representation of the current instance.
Commenti
Questo metodo restituisce una stringa in cui ogni elemento del vettore viene formattato usando la stringa di formato "G" (generale) e le convenzioni di formattazione delle impostazioni cultura del thread corrente.This method returns a string in which each element of the vector is formatted using the "G" (general) format string and the formatting conventions of the current thread culture. I <" and "> caratteri "" vengono utilizzati per iniziare e terminare la stringa e la proprietà delle impostazioni cultura correnti NumberFormatInfo.NumberGroupSeparator seguita da uno spazio viene utilizzata per separare ogni elemento.The "<" and ">" characters are used to begin and end the string, and the current culture's NumberFormatInfo.NumberGroupSeparator property followed by a space is used to separate each element.
Si applica a
ToString(String)
Restituisce la rappresentazione di stringa dell'istanza corrente usando la stringa di formato specificata per formattare i singoli elementi.Returns the string representation of the current instance using the specified format string to format individual elements.
public:
System::String ^ ToString(System::String ^ format);
public string ToString (string format);
public string ToString (string? format);
override this.ToString : string -> string
Public Function ToString (format As String) As String
Parametri
- format
- String
Stringa di formato standard o numerico personalizzato che definisce il formato dei singoli elementi.A standard or custom numeric format string that defines the format of individual elements.
Restituisce
Rappresentazione di stringa dell'istanza corrente.The string representation of the current instance.
Commenti
Questo metodo restituisce una stringa in cui ogni elemento del vettore viene formattato usando format
e le convenzioni di formattazione delle impostazioni cultura correnti.This method returns a string in which each element of the vector is formatted using format
and the current culture's formatting conventions. I <" and "> caratteri "" vengono utilizzati per iniziare e terminare la stringa e la proprietà delle impostazioni cultura correnti NumberFormatInfo.NumberGroupSeparator seguita da uno spazio viene utilizzata per separare ogni elemento.The "<" and ">" characters are used to begin and end the string, and the current culture's NumberFormatInfo.NumberGroupSeparator property followed by a space is used to separate each element.
Vedi anche
- Stringhe di formato numerico standardStandard Numeric Format Strings
- Stringhe di formato numerico personalizzatoCustom Numeric Format Strings
Si applica a
ToString(String, IFormatProvider)
Restituisce la rappresentazione di stringa dell'istanza corrente usando la stringa di formato specificata per formattare i singoli elementi e il provider di formato specificato per definire la formattazione specifica delle impostazioni cultura.Returns the string representation of the current instance using the specified format string to format individual elements and the specified format provider to define culture-specific formatting.
public:
virtual System::String ^ ToString(System::String ^ format, IFormatProvider ^ formatProvider);
public string ToString (string format, IFormatProvider formatProvider);
public string? ToString (string format, IFormatProvider formatProvider);
override this.ToString : string * IFormatProvider -> string
Public Function ToString (format As String, formatProvider As IFormatProvider) As String
Parametri
- format
- String
Stringa di formato standard o numerico personalizzato che definisce il formato dei singoli elementi.A standard or custom numeric format string that defines the format of individual elements.
- formatProvider
- IFormatProvider
Provider di formato che fornisce informazioni di formattazione specifiche delle impostazioni cultura.A format provider that supplies culture-specific formatting information.
Restituisce
Rappresentazione di stringa dell'istanza corrente.The string representation of the current instance.
Implementazioni
Commenti
Questo metodo restituisce una stringa in cui ogni elemento del vettore viene formattato utilizzando format
e formatProvider
.This method returns a string in which each element of the vector is formatted using format
and formatProvider
. I <" and "> caratteri "" vengono utilizzati per iniziare e terminare la stringa e la proprietà del provider di formato NumberFormatInfo.NumberGroupSeparator seguita da uno spazio viene utilizzata per separare ogni elemento.The "<" and ">" characters are used to begin and end the string, and the format provider's NumberFormatInfo.NumberGroupSeparator property followed by a space is used to separate each element.
Vedi anche
- Stringhe di formato numerico personalizzatoCustom Numeric Format Strings
- Stringhe di formato numerico standardStandard Numeric Format Strings