|
ExtensionsGetDXAttributeOrDefaultT(Material, DXAttributeType, T) Method |
Gets the value of the specified DXAttributeType from the specified System.Windows.Media.Media3D.Material.
If the attributeType does not exists then the specified defaultValue is returned.
Namespace: Ab3d.DirectXAssembly: Ab3d.DXEngine.Wpf (in Ab3d.DXEngine.Wpf.dll) Version: 7.0.8865.1045
Syntax public static T GetDXAttributeOrDefault<T>(
this Material material,
DXAttributeType attributeType,
T defaultValue
)
Parameters
- material Material
- System.Windows.Media.Media3D.Material
- attributeType DXAttributeType
- type of attribute as DXAttributeType
- defaultValue T
- value that is returned in case the specified attributeType is not set
Type Parameters
- T
Return Value
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
Material. 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