Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

Vector.ToString Method ()

 

Returns the string representation of this Vector structure.

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

public override string ToString()

Return Value

Type: System.String

A string that represents the X and Y values of this Vector.

The following example shows how to use this method to get a string representation of a Vector.

private String toStringExample()
{

    Vector vector1 = new Vector(20, 30);

    // vectorString is equal to "20,30".
    String stringResult = vector1.ToString();

    return stringResult;

}

.NET Framework
Available since 3.0
Return to top
Show:
© 2016 Microsoft