alexa
menu

Blazor

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

    Show / Hide Table of Contents

    Class PageMargin

    Represents the margin settings for a diagram page in the SfDiagramComponent.

    Inheritance
    object
    ComponentBase
    OwningComponentBase
    SfOwningComponentBase
    DiagramMargin
    PageMargin
    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.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 PageMargin : DiagramMargin, IComponent, IHandleEvent, IHandleAfterRender, IDisposable
    Remarks

    The PageMargin component sets the space around diagram content within the page.

    It inherits from DiagramMargin and works automatically with the parent PageSettings.

    Changes to margin values are synced with the parent diagram for consistent spacing.

    Examples

    The following example demonstrates how to configure page margins for a diagram:

    <SfDiagramComponent>
        <PageSettings >
            <PageMargin Left = "@marginLeft" Right="@marginRight" Top="@marginTop" Bottom="@marginBottom"></PageMargin>
        </PageSettings>
    </SfDiagramComponent>
    @code
    {
        double marginLeft = 10;
        double marginRight = 10;
        double marginTop = 10;
        double marginBottom = 10;
    }

    Constructors

    PageMargin()

    Declaration
    public PageMargin()

    Methods

    Dispose()

    Releases all unmanaged resources used by the PageMargin instance and clears parent references.

    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)

    OnInitializedAsync()

    Method invoked when the component is ready to start.

    Declaration
    protected override Task OnInitializedAsync()
    Returns
    Type Description
    Task

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

    Overrides
    DiagramMargin.OnInitializedAsync()

    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