Click or drag to resize
AB4D logo

ExtentionsSetDXAttribute Method (Geometry3D, DXAttributeType, Object)

Annotates the specified wpfObject with adding or updating a DXEngine's attribute to it. The attribute is specified with attributeType and its value. This can be used to annotate WPF's objects with DXEngine's attributes.

Namespace:  Ab3d.DirectX
Assembly:  Ab3d.DXEngine.Wpf (in Ab3d.DXEngine.Wpf.dll) Version: 4.2.7697.1045
Syntax
C#
public static void SetDXAttribute(
	this Geometry3D meshGeometry3D,
	DXAttributeType attributeType,
	Object value
)

Parameters

meshGeometry3D
Type: System.Windows.Media.Media3DGeometry3D
Geometry3D
attributeType
Type: Ab3d.DirectXDXAttributeType
type of attribute as DXAttributeType
value
Type: SystemObject
value

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type Geometry3D. 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
DXAttributeExceptionDXAttributeException is thrown is the specified value cannot be assigned to the specified attributeType
See Also