Point.ToString Method ()


Creates a String representation of this Point.

Namespace:   System.Windows
Assembly:  WindowsBase (in WindowsBase.dll)

public override string ToString()

Return Value

Type: System.String

A String containing the X and Y values of this Point structure.

The following example shows how to use the ToString method to get a String representation of a Point 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;


.NET Framework
Available since 3.0
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Return to top