Namespace: yWorks.yFiles.Layout
Assembly: yWorks.yFilesSilverlight.Algorithms (in yWorks.yFilesSilverlight.Algorithms.dll) Version: 2.4.0.0

Syntax

C#
[FlagsAttribute] public enum ComponentArrangementStyles
Visual Basic
<FlagsAttribute> _ Public Enumeration ComponentArrangementStyles

Members

Member nameValueDescription
None0 Style specification constant describing no special component arrangement at all. Components will be centered at the same position they resided at before the layout started. If combined with the style modifier ModifierNoOverlap components might get moved so that they don't overlap after the layout.
Rows1 Style specification constant describing a component arrangement strategy that tries to place components in multiple rows so that the overall aspect ratio of all components gets as close to the aspect ratio of the preferred layout size as possible.
SingleRow2 Style specification constant describing a component arrangement strategy that places components next to each other in a single row. If combined with the style modifier ModifierAsIs components will be placed in the same order as they were placed before the layout.
SingleColumn3 Style specification constant describing a component arrangement strategy that places components above each other in a single column. If combined with the style modifier ModifierAsIs components will be placed in the same order as they were placed before the layout.
PackedRectangle4 Style specification constant describing a component arrangement strategy that tries to place components like in a rectangular cloud around the biggest component. Entities of different components will not overlap, however the bounding boxes of the components may overlap.
PackedCompactRectangle5 Style specification constant describing a component arrangement strategy that tries to place components like in a rectangular cloud around the biggest component. Entities of different components will not overlap, however the bounding boxes of the components may overlap. In contrast to PackedRectangle components might even be placed in empty spaces inside other components.
PackedCircle6 Style specification constant describing a component arrangement strategy that tries to place components like in a cloud around the biggest component. Entities of different components will not overlap, however the bounding boxes of the components may overlap.
PackedCompactCircle7 Style specification constant describing a component arrangement strategy that tries to place components like in a cloud around the biggest component. Entities of different components will not overlap, however the bounding boxes of the components may overlap. In contrast to PackedCircle components might even be placed in empty spaces inside other components.
MultiRows8 Style specification constant describing a component arrangement strategy that places components in multiple rows. In contrast to Rows , each row may also be divided into further sub-rows, thus especially being advantageous, if there are few very large components and many significantly smaller ones. The strategy tries to arrange the components such that the aspect ratio of the final component placement gets as close as possible to the aspect ratio of the preferred layout size, configurable using SetPreferredLayoutSize(Double, Double) .
MultiRowsCompact9 Style specification constant describing a component arrangement strategy that places components in multiple rows. In contrast to Rows , each row may also be divided into further sub-rows, thus especially being advantageous, if there are few very large components and many significantly smaller ones. The strategy tries to arrange the components such that the aspect ratio of the final component placement gets close to the aspect ratio of the preferred layout size, configurable using SetPreferredLayoutSize(Double, Double) . But in contrast to MultiRows , this strategy tries not always to come as close to the preferred view ratio, if not necessary, i.e. if a ratio close to the preferred ratio only induces a lot of unused view space. This unused space will be minimized.
MultiRowsHeightConstraint10 Style specification constant describing a component arrangement strategy. It uses the same core strategy as MultiRows , but under the restriction that the resulting height does not exceed the preferred height ( PreferredLayoutSize ). Note, that the preferred width and thus the aspect ratio will be ignored. In contrast to MultiRowsHeightConstraintCompact , the result will be an arrangement which uses as much height as possible, even if that means that all components will be arranged in one single column.
MultiRowsHeightConstraintCompact11 Style specification constant describing a component arrangement strategy. It uses the same core strategy as MultiRows , but under the restriction that the resulting height does not exceed the preferred height ( PreferredLayoutSize ). Note, that the preferred width and thus the aspect ratio will be ignored. In comparison with MultiRowsHeightConstraint , the result will be compacted, which means that an arrangement with the minimum width such that the height constraint is still fulfilled will be realized.
MultiRowsWidthConstraint12 Style specification constant describing a component arrangement strategy. It uses the same core strategy as MultiRows , but under the restriction that the resulting width does not exceed the preferred width ( PreferredLayoutSize ). Note, that the preferred height and thus the aspect ratio will be ignored. In contrast to MultiRowsWidthConstraintCompact the result will be an arrangement which uses as much space in width as possible, even if that means that all components will be arranged in a single row.
MultiRowsWidthConstraintCompact13 Style specification constant describing a component arrangement strategy. It uses the same core strategy as MultiRows , but under the restriction that the resulting width does not exceed the preferred width ( PreferredLayoutSize ). Note, that the preferred height and thus the aspect ratio will be ignored. In comparison with MultiRowsHeightConstraint the result will be compacted, in order to minimize unused view space induced by components that are large in height.
Mask31Use this constant for masking actual styles constants from style modifiers.
ModifierAsIs32 Modifier constant that can be added to normal style constants to indicate that the arrangement strategy should take the initial positions of the components into account.
Combining this modifier is supported with the following styles: SingleRow , SingleColumn , PackedRectangle , PackedCompactRectangle , PackedCircle , and PackedCompactCircle .
ModifierNoOverlap64 Modifier constant that can be added to normal style constants to indicate that the arrangement strategy should produce a non-overlapping component layout.
Combining this modifier is supported with None .

Note that non-overlapping component layout (in the sense that no elements from adjacent components overlap) is inherently supported by the following styles: PackedRectangle , PackedCompactRectangle , PackedCircle , and PackedCompactCircle .

See Also