 |
ExtentionsGetDXAttributeOrDefaultT Method (Visual3D, DXAttributeType, T) |
Gets the value of the specified DXAttributeType from the specified Visual3D.
If the attributeType does not exists then the specified defaultValue is returned.
Namespace:
Ab3d.DirectX
Assembly:
Ab3d.DXEngine.Wpf (in Ab3d.DXEngine.Wpf.dll) Version: 4.2.7697.1045
Syntaxpublic static T GetDXAttributeOrDefault<T>(
this Visual3D visual3D,
DXAttributeType attributeType,
T defaultValue
)
Parameters
- visual3D
- Type: System.Windows.Media.Media3DVisual3D
Visual3D - attributeType
- Type: Ab3d.DirectXDXAttributeType
type of attribute as DXAttributeType - defaultValue
- Type: T
value that is returned in case the specified attributeType is not set
Type Parameters
- T
Return Value
Type:
Tvalue of the specified attributeType
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
Visual3D. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
See Also