![]() |
Bindings








Public Data Item |
Declared in: NiSlide.h |
Declaration
CNiBindings Bindings;
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 = slide.Bindings.Add(); binding.SetBindObject(slide); // Set BindProperty, URL, etc ... binding.Connect();
Or:
CNiBinding binding = slide.Bindings.Item(1); binding.SetBindObject(slide); // 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;