Converts the specified string representation of a vertical alignment to its VerticalAlignment equivalent, or throws an exception if the string cannot be converted to a VerticalAlignment.

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 VerticalAlignment ParseVerticalAlignment(
	string value
)
Visual Basic
Public Shared Function ParseVerticalAlignment ( _
	value As String _
) As VerticalAlignment
Visual C++
public:
static VerticalAlignment ParseVerticalAlignment(
	String^ value
)

Parameters

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

Return Value

The VerticalAlignment.

Exceptions

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

See Also