menu

Blazor

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class LayoutMargin - Blazor API Reference | Syncfusion

    Show / Hide Table of Contents

    Class LayoutMargin

    Represents the space configuration between the viewport and the automatic layout in a SfDiagramComponent.

    Inheritance
    System.Object
    DiagramMargin
    LayoutMargin
    Inherited Members
    DiagramMargin.Bottom
    DiagramMargin.BottomChanged
    DiagramMargin.Clone()
    DiagramMargin.Left
    DiagramMargin.LeftChanged
    DiagramMargin.OnInitializedAsync()
    DiagramMargin.Right
    DiagramMargin.RightChanged
    DiagramMargin.Top
    DiagramMargin.TopChanged
    Namespace: Syncfusion.Blazor.Diagram
    Assembly: Syncfusion.Blazor.dll
    Syntax
    public class LayoutMargin : DiagramMargin
    Remarks

    The LayoutMargin class extends DiagramMargin to provide specific margin settings for automatic layout algorithms.

    Examples
    <SfDiagramComponent Height = "600px" >
        <Layout Type = "LayoutType.OrganizationalChart">
                 <LayoutMargin @bind-Top="10" @bind-Top="10" @bind-Left="10"></LayoutMargin>
        </Layout>
    </SfDiagramComponent>

    Constructors

    LayoutMargin()

    Initializes a new instance of the LayoutMargin class with default margin values.

    Declaration
    public LayoutMargin()

    Methods

    Dispose()

    This method releasing all unmanaged resources.

    Declaration
    public void Dispose()

    OnAfterRenderAsync(Boolean)

    Method invoked after each time the component has been rendered.

    Declaration
    protected override Task OnAfterRenderAsync(bool firstRender)
    Parameters
    Type Name Description
    System.Boolean firstRender

    Set to true for the first time component rendering; otherwise gets false.

    Returns
    Type Description
    System.Threading.Tasks.Task

    A System.Threading.Tasks.Task representing any asynchronous operation.

    OnParametersSetAsync()

    Method invoked when any changes in component state occurs.

    Declaration
    protected override Task OnParametersSetAsync()
    Returns
    Type Description
    System.Threading.Tasks.Task

    ="Task".

    Overrides
    DiagramMargin.OnParametersSetAsync()
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved