Class LayoutMargin
Represents the space configuration between the viewport and the automatic layout in a SfDiagramComponent.
Inherited Members
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". |