VisualGetCustomPropertyValueT(String, T) Method |
Get the value of a custom property, or a defaultValue if it doesn't exist.
Namespace: Demo3D.VisualsAssembly: Demo3D.Core (in Demo3D.Core.dll) Version: 19.00.00
Syntaxpublic 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
TThe value of the custom property if it exists, otherwise defaultValue.
See Also