Show/Hide Toolbars

RiverSoftAVG Products Help

Navigation: Code Documentation > RSCommon > GGraph > Classes > TGCustomGraph > Methods

TGCustomGraph.EndUpdate Method

Scroll Prev Top Next More

Enables the graph to track when it has finished changing.

Call BeginUpdate before directly modifying the graph (adding or deleting nodes), and EndUpdate after. Changing existing nodes (such as its Caption) will still generate events, to temporarily prevent events call the node's BeginUpdate method or call    BeginUpdateNodes to prevent events for all the nodes in the graph. When implementing properties or methods that change the graph in descendants of the graph, call BeginUpdate before the changes are made, and EndUpdate when the changes are complete.

The BeginUpdate method may be nested inside other BeginUpdate method calls. The graph will not fire an    OnChange event until an equal number of EndUpdate method calls are made. Therefore, always ensure you protect the calling of the EndUpdate method call in a try-finally block.

noteNote

OnChange events will not fire. However, OnAddNode and OnRemoveNode events will still fire so that you can keep external data sets synchonized with the graph.

Namespace: GGraph

RiverSoftAVG Products Help © 1996-2016 Thomas G. Grubb