Rediger

Del via


Vector3D.ToString Method

Definition

Creates a String representation of this Vector3D structure.

Overloads

ToString()

Creates a String representation of this Vector3D structure.

ToString(IFormatProvider)

Creates a String representation of this Vector3D structure.

ToString()

Creates a String representation of this Vector3D structure.

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

Returns

A string containing the X, Y, and Z values of this Vector3D structure.

Examples

// Gets a string representation of the structure
Vector3D vector1 = new Vector3D(20, 30, 40);
String vectorString;

vectorString = vector1.ToString();
// vectorString is equal to 20, 30, 40
' Gets a string representation of the structure
Dim vector1 As New Vector3D(20, 30, 40)
Dim vectorString As String

vectorString = vector1.ToString()
' vectorString is equal to 20, 30, 40

Applies to

ToString(IFormatProvider)

Creates a String representation of this Vector3D structure.

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

Parameters

provider
IFormatProvider

Culture-specific formatting information.

Returns

Returns a String containing the X, Y, and Z values of this Vector3D structure.

Applies to