CNiBindings |
Class |
Declared in: NiBindings.h |
Overview
A CNiBindings object is a collection of data binding objects on a button, graph, knob, numeric edit, or slide control. Data binding allows you bind a control property to a data source, such as an item on an OPC or DataSocket Server.
- Use the Bindings property on the control to obtain this collection.
- Use the Add function to create additional binding. Add returns a CNiBinding object, which represents the new data binding.
- Use the Item function to access existing bindings in the collection. This function can access bindings by either name or index.
- Use the Remove function to remove existing bindings from the collection. This function can access bindings by either name or index.
- Use the RemoveAll function to remove all bindings from the collection.
Base Classes
Data Items
short | Count | The number of objects in the collection. |
Constructors
Default constructor. | |||
CNiBindings( CWBindings_CI* pCustom, CNiInterface::ThreadAccess option ) |
Constructor that attaches to the specified CWBindings_CI pointer. | ||
CNiBindings( const CNiBindings& source ) |
Copy constructor. |
Destructors
Functions
CNiBinding | Add() |
Adds a binding to the collection. | |
static const IID & | GetIid() |
Returns the globally unique identifier (GUID) of the ActiveX interface to which this class connects. | |
CNiBinding | Item( long bindingIndex ) |
Returns the specified data binding object from the collection. | |
const CNiBindings & | Assignment operator. | ||
void | Remove( long bindingIndex ) |
Removes the specified data binding object from the collection. | |
void | Removes all data binding objects from the collection. |