Class LayoutBase
Represents the base class for arranging nodes and connectors..
Implements
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Syncfusion.UI.Xaml.Diagram.Layout
Assembly: Syncfusion.SfDiagram.WPF.dll
Syntax
public abstract class LayoutBase : ILayout, IInternalLayout
Constructors
LayoutBase()
Declaration
protected LayoutBase()
Properties
Bounds
Gets or sets the region where the diagram is rendered.
Declaration
public Rect? Bounds { get; set; }
Property Value
| Type |
|---|
| System.Nullable<System.Windows.Rect> |
Remarks
Bounds property is only used for RadialTree Layout
HorizontalAlignment
Gets or sets the value to define the horizontal alignment of the diagram.
Declaration
public HorizontalAlignment HorizontalAlignment { get; set; }
Property Value
| Type |
|---|
| System.Windows.HorizontalAlignment |
Margin
Gets or sets the space between bounds and arranged diagram.
Declaration
public Thickness Margin { get; set; }
Property Value
| Type |
|---|
| System.Windows.Thickness |
VerticalAlignment
Gets or sets the value to define the horizontal alignment of the diagram.
Declaration
public VerticalAlignment VerticalAlignment { get; set; }
Property Value
| Type |
|---|
| System.Windows.VerticalAlignment |
Methods
InvalidateLayout()
Invalidates the arrange state (layout) for the element. After the invalidation, the element will have its layout updated, which will occur asynchronously unless subsequently forced by UpdateLayout().
Declaration
public abstract void InvalidateLayout()
UpdateLayout()
Method to update the currently arranged Nodes and Connectors.
Declaration
public abstract void UpdateLayout()
UpdateLayout(Object)
Method to update the currently arranged Nodes and Connectors.
Declaration
public abstract void UpdateLayout(object fixedNode)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Object | fixedNode | The node which is used as anchor to layout |