SimplePropertyValueT Constructor (Visual, String, T) |
Construct an SimplePropertyValue for a given visual and custom property name.
This will create the custom property if it doesn't exist and ensure the type of the value is T.
The property will be shown in the Simple section of the property grid in the user interface.
A property alias will be created for this property if it didn't already exist.
Namespace:
Demo3D.Native
Assembly:
Demo3D.Core (in Demo3D.Core.dll) Version: 15.0.2.11458
Syntaxpublic SimplePropertyValue(
Visual v,
string propertyName,
T initialValue
)
Parameters
- v
- Type: Demo3D.VisualsVisual
The visual to find or create the simple custom property for. - propertyName
- Type: SystemString
The name of the simple custom property. - initialValue
- Type: T
The initial value of the simple custom property.
See Also