ASP.NET Pack Programmer's Guide
TreeLayout Members
Constructors Properties Methods Events
 


Implements several algorithms for arranging tree structures.

The following tables list the members exposed by the TreeLayout type.

 Public Constructors

  Name Description

TreeLayout

Overloaded. Initializes a new instance of the TreeLayout class.

 Public Properties

  Name Description

Anchoring

Gets or sets a value indicating how to align links to the anchor points of graph nodes. (Inherited from Layout.)

Balance

Gets or sets a value indicating the ordering of the child nodes in order to produce layouts with custom balance.

CompactAssistants

Gets or sets a value indicating whether the "assistant" nodes on the same side of a single parent are arranged as close enough to each other as possible. Turning this off will force the nodes on one side to be aligned with their counterparts in the other and occasionally leaving space between adjacent branches.

Direction

Gets or sets the tree direction.

EnableAssistants

Gets or sets a value indicating whether the "assistant" trait is regarded when performing the layout.

EnableParallelism

Gets or sets a value indicating whether to arrange subgraphs on separate threads. (Inherited from Layout.)

GrowToFit

Gets or sets a value indicating whether the diagram boundaries should grow to fit the arranged content. (Inherited from Layout.)

IgnoreLinkDirection

Gets or sets a value indicating whether the tree layout algorithm should ignore the direction of links when arranging a tree.

KeepGroupLayout

Gets or sets a value indicating whether to treat each Group of nodes as a single vertex in the arranged graph. (Inherited from Layout.)

KeepRootPosition

Gets or sets a value indicating whether to keep the root node at its original position.

LayoutLink

Gets or sets a delegate, which is invoked when the position of a link is changed by the layout. (Inherited from Layout.)

LayoutNode

Gets or sets a delegate, which is invoked when the position of a node is changed by the layout. (Inherited from Layout.)

LevelDistance

Gets or sets how much space to leave between levels of the tree.

LinkOffset

Gets or sets the links' offset from the centers of the nodes. This property is applicable only for Centered tree layouts.

LinkStyle

Gets or sets a value indicating how links in the arranged tree should look.

Margins

Gets or sets the distance between the top-left corner of the smallest rectangle containing the arranged diagram and the top-left point of the document bounds. (Inherited from Layout.)

MaxDegreeOfParallelism

Gets or sets the maximum degree of parallelism. (Inherited from Layout.)

MultipleGraphsPlacement

Gets or sets a value indicating how multiple independent graphs in the diagram should be positioned relatively to each other. (Inherited from Layout.)

Name

Gets a user-friendly name of the layout.

NodeDistance

Gets or sets how much space to leave between nodes on the same level.

Progress

Gets or sets a delegate, which is invoked regularly during the layout process to inform clients about the layout progress. (Inherited from Layout.)

RepeatingLinksPadding

Specifies the padding distance between repeating links. (Inherited from Layout.)

ReversedLinks

Gets or sets a value indicating the link direction that relates parent nodes to child nodes.

Root

Gets or sets the root node of the tree.

StretchFactor

Gets or sets the stretch factor applied on Radial tree layouts.

Type

Gets or sets what type of tree layout to apply to the diagram.

 Protected Properties

  Name Description

DefaultMarginValue

Gets the default value of the Margins property.

SuppressCompleteEvent

Specifies whether raising the LayoutComplete event should be suppressed for this layout instance. (Inherited from Layout.)

 Public Methods

  Name Description

Arrange

Overloaded. Applies the layout to a Diagram instance. (Inherited from Layout.)

ArrangeAnimated

Applies the layout to the specified subset of items from the specified Diagram instance and animates items moving to their new positions. (Inherited from Layout.)

ArrangeAsync

Overloaded.   (Inherited from Layout.)

UpdateLink

Updates the style and position of the specified link.

 Protected Methods

  Name Description

OnLayoutComplete

Raises the LayoutComplete event. (Inherited from Layout.)

 Public Events

  Name Description

LayoutComplete

Raised when a layout is finished arranging a graph. (Inherited from Layout.)

 See Also

TreeLayout Class
MindFusion.Diagramming.Layout Namespace