Get the Material of a given object or group of objects

Namespace: Ico.Gwx
Assembly: Gwx3DControl (in Gwx3DControl.dll) Version: 10.97.212.0 (10.97.212.00)

Syntax

C#
public Material GetMaterialFromObject(
	DependencyObject item,
	bool useBackMaterial
)
Visual Basic
Public Function GetMaterialFromObject ( _
	item As DependencyObject, _
	useBackMaterial As Boolean _
) As Material
JScript
public function GetMaterialFromObject(
	item : DependencyObject, 
	useBackMaterial : boolean
) : Material

Parameters

item
Type: System.Windows..::..DependencyObject
the object to get the Material from
useBackMaterial
Type: System..::..Boolean
set to true to get the Material for the back of the object instead of the front of the object

Return Value

the Material of the object

See Also