Show/Hide Toolbars

RiverSoftAVG Products Help

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

TGGraph.GetNodes Method

Scroll Prev Top Next More

Returns an iterator over the entire graph. Call GetNodes to return an iterator from which you can access all the nodes in the graph. Every call to GetNodes returns a new iterator.

The GetNodes method provides a base class means of accessing all the nodes in the list. If you know the type of the descendant graph, you can use their access methods (such as the Node property of the TGGraph class).

noteNote

There is no ordering implied with the GetNodes function.

alert_cautionWarning

Do not use the enumeration to delete or add items to the graph as the behavior will be unpredictable (similar to a common TList programming error: for i := 0 to List.Count - 1 do; List.Delete(i); which only deletes every other item in the list).
 

Namespace: GGraph

Return Value

Type: IObjectIterator

Overrides

TGCustomGraph.GetNodes
 

RiverSoftAVG Products Help © 1996-2016 Thomas G. Grubb