Click or drag to resize

VisualGetCustomPropertyValueT(String, T) Method

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: 19.00.00
Syntax
C#
public T GetCustomPropertyValue<T>(
	string name,
	T defaultValue = null
)

Parameters

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

Type Parameters

T
Type of the custom property value.

Return Value

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