| IUIRendererGetAttributeT Method |
Gets a style-specific attribute value.
Namespace: DigitalRune.Game.UI.RenderingAssembly: DigitalRune.Game.UI (in DigitalRune.Game.UI.dll) Version: 1.8.0.0 (1.8.0.14553)
Syntax bool GetAttribute<T>(
string style,
string name,
out T result
)
Function GetAttribute(Of T) (
style As String,
name As String,
<OutAttribute> ByRef result As T
) As Boolean
generic<typename T>
bool GetAttribute(
String^ style,
String^ name,
[OutAttribute] T% result
)
abstract GetAttribute :
style : string *
name : string *
result : 'T byref -> bool
Parameters
- style
- Type: SystemString
The style. - name
- Type: SystemString
The name of the attribute. - result
- Type: T
The attribute value.
Type Parameters
- T
- The type of the attribute value.
Return Value
Type:
Boolean if the renderer can provide a value for the attribute; otherwise,
if the renderer does not know the style or the attribute.
Remarks
The renderer can define the visual style of the
UIControls. When a control is
loaded, it initializes its properties with values provided by this method.
See Also