CNiGraph::Bindings

CNi

Class
CNiGraph::
Bindings
Base ClassesData ItemsConstructorsDestructorsFunctionsGo to hierarchy chart    Prev page: BackColorNext page: Caption    
Public Data Item Declared in:
NiGraph.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: Below is a list of four additional bindable properties on CNiGraph.

  • YData - plots the bound yY data to the graph. Similar to the PlotY function.
  • YDataAppend - appends the bound y data to the graph. Similar to the Chart Y function.
  • XYData - plots the bound xy data to the graph. Similar to the PlotXY function.
  • XYDataAppend - appends the bound xy data to the graph. Similar to to the ChartXY function.

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

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

Or:

   CNiBinding binding = graph.Bindings.Item(1);
   binding.SetBindObject(graph);
   // 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