CNiKnob::Bindings

CNi

Class
CNiKnob::
Bindings
Base ClassesData ItemsConstructorsDestructorsFunctionsGo to hierarchy chart    Prev page: BackColorNext page: Caption    
Public Data Item Declared in:
NiKnob.h

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

CNiBindings Bindings;

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

Gets a collection of binding objects associated with the control.

Note that you must initialize a CNiBinding object from an existing object. For example:

   CNiBinding binding = knob.Bindings.Add();
   binding.SetBindObject(knob);
   // Set BindProperty, URL, etc ...
   binding.Connect();

Or:

   CNiBinding binding = knob.Bindings.Item(1);
   binding.SetBindObject(knob);
   // Set BindProperty, URL, etc ...
   binding.Connect();

If you do not initialize a CNiBinding object from an existing object, a CNiObjectNotInUsableState exception will be thrown when you attempt to manipulate the instance of the CNiBinding. For example:

   CNiBinding binding;

// This will throw a CNiObjectNotInUsableState exception because // the CNiBinding object was not initialized from an existing // object. binding.TimerInterval = 1000;

'See Also' icon -- Shortcut to top of page. See Also