Langue

Point.ToString Méthode

Définition

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

Surcharges

Nom Description
ToString()

Crée une String représentation de ce Point.

ToString(IFormatProvider)

Crée une String représentation de ce Point.

ToString()

Crée une String représentation de ce Point.

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

Retours

Contenant String les valeurs et X les Y valeurs de cette Point structure.

Exemples

L’exemple suivant montre comment utiliser la ToString méthode pour obtenir une représentation d’une StringPoint structure.

private String toStringExample()
{

    Point point1 = new Point(10, 5);

    // Get a string representation of a Point structure.
    // pointString is equal to 10,5	.
    String stringResult = point1.ToString();

    return stringResult;
}
Private Function toStringExample() As String

    Dim point1 As New Point(10, 5)

    ' Get a string representation of a Point structure.
    ' pointString is equal to 10,5	.
    Dim stringResult As String = point1.ToString()

    Return stringResult

End Function

S’applique à

ToString(IFormatProvider)

Crée une String représentation de ce Point.

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

Contenant String les valeurs et X les Y valeurs de cette Point structure.

S’applique à