VisualAddCustomProperty Method (String, Object, String) |
Namespace: Demo3D.Visuals
public CustomProperty AddCustomProperty( string name, Object val, string description )
// Create a new custom property of type String with value "X": sender.AddCustomProperty("Label", "X", "My Label property"); // You can also set a category for your custom properties: var cp = sender.AddCustomProperty("Label", "X", "My Label property"); cp.Category = "My Properties"; // You can also take short-cut and avoid defining the cp variable: sender.AddCustomProperty( "Label", "X", "My Label property" ).Category = "My Properties";