Retrieves an enumeration of the positions that a node is shown at.
Namespace: TreeLayoutHelper.FlowLayoutAssembly: TreeLayoutHelper (in TreeLayoutHelper.dll) Version: 1.1.0.0 (1.1.0.0)
Syntax
C# |
---|
public override IEnumerable<NodeWithBounds<TNode>> GetNodePositions( TNode treeNode ) |
Visual Basic |
---|
Public Overrides Function GetNodePositions ( _ treeNode As TNode _ ) As IEnumerable(Of NodeWithBounds(Of TNode)) |
Visual C++ |
---|
public: virtual IEnumerable<NodeWithBounds<TNode>>^ GetNodePositions( TNode treeNode ) override |
J# |
---|
public IEnumerable<NodeWithBounds<TNode>> GetNodePositions( TNode treeNode ) |
JScript |
---|
public override 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
Exception | Condition |
---|---|
System..::..ArgumentNullException | treeNode is nullNothingnullptra null reference (Nothing in Visual Basic). |
System..::..InvalidOperationException | Canvas is currently nullNothingnullptra null reference (Nothing in Visual Basic). |