Click or drag to resize

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
Syntax
C#
public bool HasCustomProperty(
	string propertyName
)

Parameters

propertyName
Type: SystemString
The name of the custom property.

Return Value

Type: Boolean
true if the custom property has been defined, otherwise false.
Examples
C#
[Auto] void OnInitialize(Visual sender)
{
    if (!sender.HasCustomProperty("FinalCount")) {
        sender.AddCustomProperty("FinalCount", 0, "Final Count Custom Property");
    }
}
See Also