Click or drag to resize
AB4D logo

ExtensionsGetDXAttribute(Visual3D, DXAttributeType) Method

Gets the value of the specified DXAttributeType from the specified Visual3D. If the attributeType does not exists then an exception is thrown. Use GetDXAttributeOrDefaultT(Visual3D, DXAttributeType) or GetDXAttributeOrDefaultT(Visual3D, DXAttributeType, T) to prevent throwing exception when the value is not set.

Namespace: Ab3d.DirectX
Assembly: Ab3d.DXEngine.Wpf (in Ab3d.DXEngine.Wpf.dll) Version: 7.0.8865.1045
Syntax
C#
public static Object GetDXAttribute(
	this Visual3D visual3D,
	DXAttributeType attributeType
)

Parameters

visual3D  Visual3D
Visual3D
attributeType  DXAttributeType
type of attribute as DXAttributeType

Return Value

Object
value 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).
Exceptions
ExceptionCondition
DXAttributeTypeDXAttributeType is thrown if the attributeType was not set.
See Also