Class BasicShapeMargin
Specifies the space around the basic shape.
Inherited Members
Namespace: Syncfusion.Blazor.Diagrams
Assembly: Syncfusion.Blazor.dll
Syntax
public class BasicShapeMargin : DiagramMargin
Examples
<SfDiagram Height="600px" Nodes="@NodeCollection">
</SfDiagram>
@code
{
//Initialize node collection with node
ObservableCollection<DiagramNode> NodeCollection = new ObservableCollection<DiagramNode>()
{
//Creates a basic shape node
new DiagramNode()
{
Id="node1",
//Size of the node
Height=100,
Width=100,
Shape=new DiagramShape (){Type=Shapes.Basic,BasicShape=BasicShapes.Rectangle,Margin = new BasicShapeMargin(){ Top = 10, Left = 10, Bottom = 10, Right = 10} }
}
};
}
Constructors
BasicShapeMargin()
Specifies the space around the basic shape.
Declaration
public BasicShapeMargin()