Leer en inglés Editar

Compartir a través de


Vector.Parse(String) Method

Definition

Converts a string representation of a vector into the equivalent Vector structure.

C#
public static System.Windows.Vector Parse(string source);

Parameters

source
String

The string representation of the vector.

Returns

The equivalent Vector structure.

Examples

The following example shows how to use this method to convert a string representation of a vector into a Vector structure.

C#
private Vector parseExample()
{

    // Convert string into a Vector structure.
    // vectorResult is equal to (1,3)
    Vector vectorResult = Vector.Parse("1,3");

    return vectorResult;
}

Applies to

Producto Versiones
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9, 10

See also