menu

Blazor

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class PageMargin - API Reference

    Show / Hide Table of Contents

    Class PageMargin

    Represents the margin of the diagram page.

    Inheritance
    System.Object
    DiagramMargin
    PageMargin
    Inherited Members
    DiagramMargin.Clone()
    DiagramMargin.LeftChanged
    DiagramMargin.RightChanged
    DiagramMargin.TopChanged
    DiagramMargin.BottomChanged
    DiagramMargin.Left
    DiagramMargin.Right
    DiagramMargin.Top
    DiagramMargin.Bottom
    Namespace: Syncfusion.Blazor.Diagram
    Assembly: Syncfusion.Blazor.dll
    Syntax
    public class PageMargin : DiagramMargin
    Examples
    <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()

    This method releases 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.

    OnInitializedAsync()

    Method invoked when the component is ready to start.

    Declaration
    protected override Task OnInitializedAsync()
    Returns
    Type Description
    System.Threading.Tasks.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
    System.Threading.Tasks.Task

    ="Task".

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