Class DiagramMargin
Specifies the extra space around the outer boundaries of an element.
Namespace: Syncfusion.Blazor.Diagram
Assembly: Syncfusion.Blazor.dll
Syntax
public class DiagramMargin : OwningComponentBase
Constructors
DiagramMargin()
Initializes a new instance of the DiagramMargin.
Declaration
public DiagramMargin()
DiagramMargin(DiagramMargin)
Creates a new instance of the DiagramMargin from the given DiagramMargin.
Declaration
public DiagramMargin(DiagramMargin src)
Parameters
Type | Name | Description |
---|---|---|
DiagramMargin | src | DiagramMargin |
Properties
Bottom
Gets or sets the extra space at the bottom of an element.
Declaration
public double Bottom { get; set; }
Property Value
Type |
---|
System.Double |
Examples
Connector connector = new Connector()
{
FixedUserHandles = new DiagramObjectCollection<ConnectorFixedUserHandle>()
{
new ConnectorFixedUserHandle()
{
Visibility = true,Padding = new DiagramThickness() { Bottom = 1 },
}
},
};
BottomChanged
Specifies the callback to trigger when the bottom values changes.
Declaration
public EventCallback<double> BottomChanged { get; set; }
Property Value
Type |
---|
Microsoft.AspNetCore.Components.EventCallback<System.Double> |
Left
Gets or sets the extra space at the left side of an element.
Declaration
public double Left { get; set; }
Property Value
Type |
---|
System.Double |
Examples
Connector connector = new Connector()
{
FixedUserHandles = new DiagramObjectCollection<ConnectorFixedUserHandle>()
{
new ConnectorFixedUserHandle()
{
Padding = new DiagramThickness() { Left = 1 },
}
},
};
LeftChanged
Specifies the callback to trigger when the left values changes.
Declaration
public EventCallback<double> LeftChanged { get; set; }
Property Value
Type |
---|
Microsoft.AspNetCore.Components.EventCallback<System.Double> |
Right
Gets or sets the extra space at the right side of an element.
Declaration
public double Right { get; set; }
Property Value
Type |
---|
System.Double |
Examples
Connector connector = new Connector()
{
FixedUserHandles = new DiagramObjectCollection<ConnectorFixedUserHandle>()
{
new ConnectorFixedUserHandle()
{
Visibility = true,Padding = new DiagramThickness() { Right = 1},
}
},
};
RightChanged
Specifies the callback to trigger when the right values changes.
Declaration
public EventCallback<double> RightChanged { get; set; }
Property Value
Type |
---|
Microsoft.AspNetCore.Components.EventCallback<System.Double> |
Top
Gets or sets the extra space at the top side of an element.
Declaration
public double Top { get; set; }
Property Value
Type |
---|
System.Double |
Examples
Connector connector = new Connector()
{
FixedUserHandles = new DiagramObjectCollection<ConnectorFixedUserHandle>()
{
new ConnectorFixedUserHandle()
{
Visibility = true,Padding = new DiagramThickness() { Top = 1 },
}
},
};
TopChanged
Specifies the callback to trigger when the top values changes.
Declaration
public EventCallback<double> TopChanged { get; set; }
Property Value
Type |
---|
Microsoft.AspNetCore.Components.EventCallback<System.Double> |
Methods
Clone()
Creates a new margin that is a copy of the current margin.
Declaration
public object Clone()
Returns
Type | Description |
---|---|
System.Object | DiagramMargin |
Dispose()
This method releasing all unmanaged resources.
Declaration
public void Dispose()
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. |
OnParametersSetAsync()
Method invoked when any changes in component state occurs.
Declaration
protected override Task OnParametersSetAsync()
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task | ="Task". |