Vector3D.ToString Méthode

Définition

Crée une représentation String de cette structure Vector3D.

Surcharges

ToString()

Crée une représentation String de cette structure Vector3D.

ToString(IFormatProvider)

Crée une représentation String de cette structure Vector3D.

ToString()

Crée une représentation String de cette structure Vector3D.

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

Retours

Chaîne contenant les valeurs X, Y et Z de cette structure Vector3D.

Exemples

// 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

S’applique à

ToString(IFormatProvider)

Crée une représentation String de cette structure Vector3D.

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

Paramètres

provider
IFormatProvider

Informations de mise en forme spécifiques à la culture.

Retours

Retourne une String contenant les valeurs X, Y et Z de cette structure Vector3D.

S’applique à