Click or drag to resize
DigitalRuneUIRendererOnParseAttributeT Method

Namespace: DigitalRune.Game.UI.Rendering
Assembly: DigitalRune.Game.UI (in DigitalRune.Game.UI.dll) Version: 1.8.0.0 (1.8.0.14553)
Syntax
protected bool OnParseAttribute<T>(
	ThemeAttribute attribute,
	out T result
)

Parameters

attribute
Type: DigitalRune.Game.UI.RenderingThemeAttribute
The attribute.
result
Type: T
The parsed value.

Type Parameters

T
The target type.

Return Value

Type: Boolean
if the Value could be converted to the type T; otherwise, .
Remarks

The base implementation of this method supports following types: Vector4F, Color, Rectangle, Rectangle?, Texture2D, enumerations, types that have a TypeConverter, and types that implement IConvertible.

Derived classes can override this method to add support for additional types.

See Also