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
Syntaxpublic 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:
TThe value of the custom property if it exists, otherwise defaultValue.
See Also