Retrieves an enumeration of the positions that a node is shown at.

Namespace: TreeLayoutHelper
Assembly: TreeLayoutHelper (in TreeLayoutHelper.dll) Version: 1.1.0.0 (1.1.0.0)

Syntax

C#
public abstract IEnumerable<NodeWithBounds<TNode>> GetNodePositions(
	TNode treeNode
)
Visual Basic
Public MustOverride Function GetNodePositions ( _
	treeNode As TNode _
) As IEnumerable(Of NodeWithBounds(Of TNode))
Visual C++
public:
virtual IEnumerable<NodeWithBounds<TNode>>^ GetNodePositions(
	TNode treeNode
) abstract
J#
public abstract IEnumerable<NodeWithBounds<TNode>> GetNodePositions(
	TNode treeNode
)
JScript
public abstract function GetNodePositions(
	treeNode : TNode
) : IEnumerable<NodeWithBounds<TNode>>
JavaScript
function GetNodePositions(treeNode);

Parameters

treeNode
Type: TNode
The node to find.

Return Value

An enumeration of all positions at which treeNode is shown.

Remarks

This method checks where the given tree node is displayed in the layout. Some nodes may be displayed more than once, in which case the resulting enumeration contains several elements. Some nodes might not be displayed at all. In that case, the resulting enumeration will not return any elements.

Exceptions

ExceptionCondition
System..::..ArgumentNullExceptiontreeNode is nullNothingnullptra null reference (Nothing in Visual Basic).
System..::..InvalidOperationExceptionCanvas is currently nullNothingnullptra null reference (Nothing in Visual Basic).

See Also