Converts the specified string representation of a 2-dimensional vector to its Vector2F equivalent, or throws an exception if the string cannot be converted to a Vector2F.

Namespace: DigitalRune.Game.UI.Rendering
Assembly: DigitalRune.Game.UI (in DigitalRune.Game.UI.dll) Version: 1.1.0.0 (1.1.1.9392)

Syntax

C#
public static Vector2F ParseVector2F(
	string value
)
Visual Basic
Public Shared Function ParseVector2F ( _
	value As String _
) As Vector2F
Visual C++
public:
static Vector2F ParseVector2F(
	String^ value
)

Parameters

value
Type: System..::..String
The value. If this value is nullNothingnullptra null reference (Nothing in Visual Basic) or an empty string, Zero is returned as the default value.

Return Value

The Vector2F.

Exceptions

ExceptionCondition
System..::..FormatException Cannot convert value to Vector2F.

See Also