Click or drag to resize

VisualGetCustomPropertyValueT Method (String, T)

Get the value of a custom property, or a defaultValue if it doesn't exist.

Namespace:  Demo3D.Visuals
Assembly:  Demo3D.Core (in Demo3D.Core.dll) Version: 15.0.2.11458
Syntax
C#
public T GetCustomPropertyValue<T>(
	string name,
	T defaultValue = null
)

Parameters

name
Type: SystemString
Name of custom property to get the value for.
defaultValue (Optional)
Type: T
Optional default value in the case that the custom property doesn't exist.

Type Parameters

T
Type of the custom property value.

Return Value

Type: T
The value of the custom property if it exists, otherwise defaultValue.
See Also