PolyTree.GetFirst

Del.» function GetFirst: TPolyNode;

C++ » PolyNode* GetFirst();

C#  » public PolyNode GetFirst();

This method returns the first outer polygon contour if any, otherwise a null pointer.

This function is almost equivalent to calling Childs[0] except that when a PolyTree object is empty (has no children), calling Childs[0] would raise an out of range exception.

See Also

PolyNode.GetNext, PolyNode.ChildCount, PolyNode.Childs