Class NodeMargin
Sets the outer space for a node on all the four sides. By default, the margin is set to 0 in all the four sides.
Inherited Members
Namespace: Syncfusion.Blazor.Diagrams
Assembly: Syncfusion.Blazor.dll
Syntax
public class NodeMargin : DiagramMargin
Examples
<SfDiagram Height="600px" Nodes="@NodeCollection">
</SfDiagram>
@code{
public ObservableCollection<DiagramNode> NodeCollection = new ObservableCollection<DiagramNode>() { };
protected override void OnInitialized()
{
DiagramNode Node = new DiagramNode()
{
OffsetX = 250,
OffsetY = 250,
Width = 100,
Height = 100,
Margin = new NodeMargin()
{
Bottom = 20,
Left = 20,
Right = 20,
Top = 20
}
};
NodeCollection.Add(Node);
}
}
Constructors
NodeMargin()
Sets the outer space for a node on all the four sides. By default, the margin is set to 0 in all the four sides.
Declaration
public NodeMargin()