alexa
menu

Blazor

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Search Results for

    Show / Hide Table of Contents

    Class LayoutMargin

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

    Inheritance
    object
    ComponentBase
    OwningComponentBase
    SfOwningComponentBase
    DiagramMargin
    LayoutMargin
    Implements
    IComponent
    IHandleEvent
    IHandleAfterRender
    IDisposable
    Inherited Members
    ComponentBase.Assets
    ComponentBase.AssignedRenderMode
    ComponentBase.BuildRenderTree(RenderTreeBuilder)
    ComponentBase.DispatchExceptionAsync(Exception)
    ComponentBase.InvokeAsync(Action)
    ComponentBase.InvokeAsync(Func<Task>)
    ComponentBase.OnAfterRender(bool)
    ComponentBase.OnInitialized()
    ComponentBase.OnParametersSet()
    ComponentBase.RendererInfo
    ComponentBase.SetParametersAsync(ParameterView)
    ComponentBase.ShouldRender()
    ComponentBase.StateHasChanged()
    DiagramMargin.Bottom
    DiagramMargin.BottomChanged
    DiagramMargin.Clone()
    DiagramMargin.Left
    DiagramMargin.LeftChanged
    DiagramMargin.OnInitializedAsync()
    DiagramMargin.Right
    DiagramMargin.RightChanged
    DiagramMargin.Top
    DiagramMargin.TopChanged
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    OwningComponentBase.Dispose(bool)
    OwningComponentBase.IsDisposed
    OwningComponentBase.ScopedServices
    Namespace: Syncfusion.Blazor.Diagram
    Assembly: Syncfusion.Blazor.dll
    Syntax
    public class LayoutMargin : DiagramMargin, IComponent, IHandleEvent, IHandleAfterRender, IDisposable
    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(bool)

    Method invoked after each time the component has been rendered.

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

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

    Returns
    Type Description
    Task

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

    Overrides
    ComponentBase.OnAfterRenderAsync(bool)

    OnParametersSetAsync()

    Method invoked when any changes in component state occurs.

    Declaration
    protected override Task OnParametersSetAsync()
    Returns
    Type Description
    Task

    ="Task".

    Overrides
    DiagramMargin.OnParametersSetAsync()

    Implements

    IComponent
    IHandleEvent
    IHandleAfterRender
    IDisposable
    In this article
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved