แก้ไข

แชร์ผ่าน


Vector4.ToString Method

Definition

Returns the string representation of the current Vector4 instance.

Overloads

ToString()

Returns the string representation of the current instance using default formatting.

ToString(String)

Returns the string representation of the current instance using the specified format string to format individual elements.

ToString(String, IFormatProvider)

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()

Source:
Vector4.cs
Source:
Vector4.cs
Source:
Vector4.cs

Returns the string representation of the current instance using default formatting.

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

Returns

The string representation of the current instance.

Remarks

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 culture. 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.

Applies to

ToString(String)

Source:
Vector4.cs
Source:
Vector4.cs
Source:
Vector4.cs

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 readonly string ToString (string? format);
public readonly string ToString (string format);
override this.ToString : string -> string
Public Function ToString (format As String) As String

Parameters

format
String

A standard or custom numeric format string that defines the format of individual elements.

Returns

The string representation of the current instance.

Remarks

This method returns a string in which each element of the vector is formatted using format and the current culture's formatting conventions. 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.

See also

Applies to

ToString(String, IFormatProvider)

Source:
Vector4.cs
Source:
Vector4.cs
Source:
Vector4.cs

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 readonly string ToString (string? format, IFormatProvider? formatProvider);
public readonly string ToString (string format, IFormatProvider formatProvider);
override this.ToString : string * IFormatProvider -> string
Public Function ToString (format As String, formatProvider As IFormatProvider) As String

Parameters

format
String

A standard or custom numeric format string that defines the format of individual elements.

formatProvider
IFormatProvider

A format provider that supplies culture-specific formatting information.

Returns

The string representation of the current instance.

Implements

Remarks

This method returns a string in which each element of the vector is formatted using format and formatProvider. 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.

See also

Applies to