Vector<T>.ToString Metoda

Definice

Přetížení

ToString()

Returns the string representation of this vector using default formatting.Returns the string representation of this vector using default formatting.

ToString(String)

Returns the string representation of this vector using the specified format string to format individual elements.Returns the string representation of this vector using the specified format string to format individual elements.

ToString(String, IFormatProvider)

Returns the string representation of this vector using the specified format string to format individual elements and the specified format provider to define culture-specific formatting.Returns the string representation of this vector using the specified format string to format individual elements and the specified format provider to define culture-specific formatting.

ToString()

Returns the string representation of this vector using default formatting.Returns the string representation of this vector using default formatting.

public:
 override System::String ^ ToString();
public override string ToString ();
override this.ToString : unit -> string
Public Overrides Function ToString () As String

Návraty

The string representation of this vector.The string representation of this vector.

Poznámky

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.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. The current culture's NumberFormatInfo.NumberGroupSeparator property followed by a space is used to separate each element.The current culture's NumberFormatInfo.NumberGroupSeparator property followed by a space is used to separate each element.

ToString(String)

Returns the string representation of this vector using the specified format string to format individual elements.Returns the string representation of this vector using the specified format string to format individual elements.

public:
 System::String ^ ToString(System::String ^ format);
public string ToString (string format);
override this.ToString : string -> string
Public Function ToString (format As String) As String

Parametry

format
String

A or that defines the format of individual elements.A or that defines the format of individual elements.

Návraty

The string representation of the current instance.The string representation of the current instance.

Poznámky

This method returns a string in which each element of the vector is formatted using format and the current culture's formatting conventions.This method returns a string in which each element of the vector is formatted using format and the current culture's formatting conventions. The current culture's NumberFormatInfo.NumberGroupSeparator property followed by a space is used to separate each element.The current culture's NumberFormatInfo.NumberGroupSeparator property followed by a space is used to separate each element.

ToString(String, IFormatProvider)

Returns the string representation of this vector using the specified format string to format individual elements and the specified format provider to define culture-specific formatting.Returns the string representation of this vector 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);
override this.ToString : string * IFormatProvider -> string
Public Function ToString (format As String, formatProvider As IFormatProvider) As String

Parametry

format
String

A or that defines the format of individual elements.A or that defines the format of individual elements.

formatProvider
IFormatProvider

A format provider that supplies culture-specific formatting information.A format provider that supplies culture-specific formatting information.

Návraty

The string representation of the current instance.The string representation of the current instance.

Implementuje

Poznámky

This method returns a string in which each element of the vector is formatted using format and formatProvider, and the format provider's NumberFormatInfo.NumberGroupSeparator property followed by a space is used to separate each element.This method returns a string in which each element of the vector is formatted using format and formatProvider, and the format provider's NumberFormatInfo.NumberGroupSeparator property followed by a space is used to separate each element.

Platí pro