CNiBindings

CNi

Class CNiBindings Base ClassesData ItemsConstructorsDestructorsFunctionsGo to hierarchy chart    Prev page: RemoveAllNext page: Count    
Class Declared in:
NiBindings.h

'Overview' icon -- Shortcut to top of page. 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.

Hierarchy Chart Hierarchy Chart

'Base Classes' icon -- Shortcut to top of page. Base Classes

'Data Items' icon -- Shortcut to top of page. Data Items

Public data short Count The number of objects in the collection.

'Constructors' icon -- Shortcut to top of page. Constructors

Public constructor

CNiBindings()

Default constructor.
Public constructor

CNiBindings( CWBindings_CI* pCustom, CNiInterface::ThreadAccess option )

Constructor that attaches to the specified CWBindings_CI pointer.
Public constructor

CNiBindings( const CNiBindings& source )

Copy constructor.

'Destructors' icon -- Shortcut to top of page. Destructors

Public destructor

~CNiBindings()

Destructor.

'Functions' icon -- Shortcut to top of page. Functions

Public function CNiBinding

Add()

Adds a binding to the collection.
Public function static const IID &

GetIid()

Returns the globally unique identifier (GUID) of the ActiveX interface to which this class connects.
Public function CNiBinding

Item( long bindingIndex )

Returns the specified data binding object from the collection.
Public function const CNiBindings &

operator =( const CNiBindings& source )

Assignment operator.
Public function void

Remove( long bindingIndex )

Removes the specified data binding object from the collection.
Public function void

RemoveAll()

Removes all data binding objects from the collection.