VisualHasCustomProperty Method |
Determines whether a custom property has been defined or not.
Namespace:
Demo3D.Visuals
Assembly:
Demo3D.Core (in Demo3D.Core.dll) Version: 15.0.2.11458
Syntaxpublic bool HasCustomProperty(
string propertyName
)
Parameters
- propertyName
- Type: SystemString
The name of the custom property.
Return Value
Type:
Booleantrue if the custom property has been defined, otherwise false.
Examples[Auto] void OnInitialize(Visual sender)
{
if (!sender.HasCustomProperty("FinalCount")) {
sender.AddCustomProperty("FinalCount", 0, "Final Count Custom Property");
}
}
See Also