Measures the frame of a node.

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

Syntax

C#
void MeasureFrame(
	TNode node,
	int subtreeWidth,
	int subtreeHeight,
	ref int left,
	ref int top,
	ref int right,
	ref int bottom
)
Visual Basic
Sub MeasureFrame ( _
	node As TNode, _
	subtreeWidth As Integer, _
	subtreeHeight As Integer, _
	ByRef left As Integer, _
	ByRef top As Integer, _
	ByRef right As Integer, _
	ByRef bottom As Integer _
)
Visual C++
void MeasureFrame(
	TNode node, 
	int subtreeWidth, 
	int subtreeHeight, 
	int% left, 
	int% top, 
	int% right, 
	int% bottom
)
J#
void MeasureFrame(
	TNode node,
	int subtreeWidth,
	int subtreeHeight,
	/** @ref */int left,
	/** @ref */int top,
	/** @ref */int right,
	/** @ref */int bottom
)
JScript
function MeasureFrame(
	node : TNode, 
	subtreeWidth : int, 
	subtreeHeight : int, 
	left : int, 
	top : int, 
	right : int, 
	bottom : int
)
JavaScript
function MeasureFrame(node, subtreeWidth, subtreeHeight, left, top, right, bottom);

Parameters

node
Type: TNode
The node.
subtreeWidth
Type: System..::..Int32
The width of the complete subtree with node as the root node.
subtreeHeight
Type: System..::..Int32
The height of the complete subtree with node as the root node.
left
Type: System..::..Int32%
The additional space for the frame on the left side.
top
Type: System..::..Int32%
The additional space for the frame on the upper side.
right
Type: System..::..Int32%
The additional space for the frame on the right side.
bottom
Type: System..::..Int32%
The additional space for the frame on the lower side.

Remarks

Implementations of this method can specify the additional padding inside a frame around the bounding box of the subgraph that is included in the frame. The reference arguments left, top, right and bottom are initialized with zeroes, so setting nothing for any of them will result in no padding being added on the respective side.

Exceptions

ExceptionCondition
System..::..ArgumentNullExceptionnode is nullNothingnullptra null reference (Nothing in Visual Basic).

See Also