Point4D.ToString Méthode

Définition

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

Surcharges

Nom Description
ToString()

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

ToString(IFormatProvider)

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

ToString()

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

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

Retours

Retourne une String valeur contenant les Xvaleurs , Yet ZW les valeurs de cette Point4D structure.

Exemples

L’exemple suivant montre comment obtenir une représentation sous forme de chaîne d’une Point4D structure.

// Gets a string representation of the structure
Point4D point1 = new Point4D(10, 5, 1, 4);
String pointString;

pointString = point1.ToString();
// matrixString is equal to 10, 5, 1, 4

// Displaying Results
syntaxString = "pointString = point1.ToString();";
resultType = "String";
operationString = "Getting the string representation of a Point4D";
ShowResults(pointString.ToString(), syntaxString, resultType, operationString);
' Gets a string representation of the structure
Dim point1 As New Point4D(10, 5, 1, 4)
Dim pointString As String

pointString = point1.ToString()
' matrixString is equal to 10, 5, 1, 4

' Displaying Results
syntaxString = "pointString = point1.ToString()"
resultType = "String"
operationString = "Getting the string representation of a Point4D"
ShowResults(pointString.ToString(), syntaxString, resultType, operationString)

S’applique à

ToString(IFormatProvider)

Crée une String représentation de cette Point4D 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

Paramètres

provider
IFormatProvider

Informations de mise en forme propres à la culture.

Retours

Retourne une String valeur contenant les Xvaleurs , Yet ZW les valeurs de cette Point4D structure.

Exemples

L’exemple suivant montre comment obtenir une représentation sous forme de chaîne d’une Point4D structure.

// Gets a string representation of the structure
Point4D point1 = new Point4D(10, 5, 1, 4);
String pointString;

pointString = point1.ToString();
// matrixString is equal to 10, 5, 1, 4

// Displaying Results
syntaxString = "pointString = point1.ToString();";
resultType = "String";
operationString = "Getting the string representation of a Point4D";
ShowResults(pointString.ToString(), syntaxString, resultType, operationString);
' Gets a string representation of the structure
Dim point1 As New Point4D(10, 5, 1, 4)
Dim pointString As String

pointString = point1.ToString()
' matrixString is equal to 10, 5, 1, 4

' Displaying Results
syntaxString = "pointString = point1.ToString()"
resultType = "String"
operationString = "Getting the string representation of a Point4D"
ShowResults(pointString.ToString(), syntaxString, resultType, operationString)

S’applique à