VisualAddBindingInterface Method  | 
 Add a custom property to the visual which. This property is set to be a binding interface using the declared access rights.
 
    Namespace: 
   Demo3D.Visuals
    Assembly:
   Demo3D.Core (in Demo3D.Core.dll) Version: 18.03.00
Syntaxpublic CustomProperty AddBindingInterface(
	IBindingInterfaceOwner owner,
	string name,
	Object val,
	string description,
	AccessRights accessRights,
	string prefix = null,
	string separator = null,
	bool renameFirstInstance = false
)
Parameters
- owner
 - Type: Demo3D.VisualsIBindingInterfaceOwner
Name of custom property to create. - name
 - Type: SystemString
Name of custom property to create. - val
 - Type: SystemObject
Initial value of custom property. - description
 - Type: SystemString
Description of the property, shown in the property grid - accessRights
 - Type: Demo3D.PLC.CommsAccessRights
Set the access rights of the binding interface - prefix (Optional)
 - Type: SystemString
If the visual already has a custom property with the same name this will be used to prefix the name of the property - separator (Optional)
 - Type: SystemString
If the visual already has a custom property with the same name this will used to separate the prefix and the name of the separator - renameFirstInstance (Optional)
 - Type: SystemBoolean
When true, always rename the custom property. 
Return Value
Type: 
CustomPropertyA newly-created or updated CustomProperty object
RemarksIf both prefix and separator are null, the property will not be renamed.
Examples
sender.AddCustomProperty("Label", "X", "My Label property");
var cp = sender.AddCustomProperty("Label", "X", "My Label property");
cp.Category = "My Properties";
sender.AddCustomProperty(
    "Label",
    "X",
    "My Label property"
    ).Category = "My Properties";
See Also