Class DiagramLayout
Configures automatic arrangement of a SfDiagram's nodes and connectors.
Inherited Members
Namespace: Syncfusion.Maui.Diagram
Assembly: Syncfusion.Maui.Diagram.dll
Syntax
public class DiagramLayout : DiagramElement
Remarks
Mirrors (a subset of) the EJ2 Diagram LayoutModel JSON shape: { type, orientation,
horizontalSpacing, verticalSpacing, root }. Assign to AutoLayout, or mutate this
instance's properties in place — either way the change is sent to the JavaScript side and
diagram.dataBind() is called to re-run the layout.
Constructors
DiagramLayout()
Declaration
public DiagramLayout()
Fields
HorizontalSpacingProperty
Identifies the HorizontalSpacing bindable property.
Declaration
public static readonly BindableProperty HorizontalSpacingProperty
Field Value
| Type |
|---|
| Microsoft.Maui.Controls.BindableProperty |
OrientationProperty
Identifies the Orientation bindable property.
Declaration
public static readonly BindableProperty OrientationProperty
Field Value
| Type |
|---|
| Microsoft.Maui.Controls.BindableProperty |
RootProperty
Identifies the Root bindable property.
Declaration
public static readonly BindableProperty RootProperty
Field Value
| Type |
|---|
| Microsoft.Maui.Controls.BindableProperty |
TypeProperty
Identifies the Type bindable property.
Declaration
public static readonly BindableProperty TypeProperty
Field Value
| Type |
|---|
| Microsoft.Maui.Controls.BindableProperty |
VerticalSpacingProperty
Identifies the VerticalSpacing bindable property.
Declaration
public static readonly BindableProperty VerticalSpacingProperty
Field Value
| Type |
|---|
| Microsoft.Maui.Controls.BindableProperty |
Properties
HorizontalSpacing
Gets or sets the spacing between sibling nodes, in diagram units.
Declaration
public double HorizontalSpacing { get; set; }
Property Value
| Type |
|---|
| System.Double |
Orientation
Gets or sets the growth direction for tree-shaped layout types.
Declaration
public LayoutOrientation Orientation { get; set; }
Property Value
| Type |
|---|
| LayoutOrientation |
Root
Gets or sets the Id to treat as the layout's root. Optional — most layout types can infer a root from the connector graph when left null.
Declaration
public string Root { get; set; }
Property Value
| Type |
|---|
| System.String |
Type
Gets or sets the layout algorithm. Defaults to None (manual positioning).
Declaration
public DiagramLayoutType Type { get; set; }
Property Value
| Type |
|---|
| DiagramLayoutType |
VerticalSpacing
Gets or sets the spacing between tree levels/ranks, in diagram units.
Declaration
public double VerticalSpacing { get; set; }
Property Value
| Type |
|---|
| System.Double |