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