Blazor

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class BasicShapeMargin

    Show / Hide Table of Contents

    Class BasicShapeMargin

    Specifies the space around the basic shape.

    Inheritance
    System.Object
    SfDiagramBase
    DiagramMargin
    BasicShapeMargin
    Inherited Members
    DiagramMargin.Bottom
    DiagramMargin.Left
    DiagramMargin.Right
    DiagramMargin.Top
    SfDiagramBase.UpdateCollection(IList, Boolean)
    SfDiagramBase.RandomString(Int32)
    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()
    Back to top Generated by DocFX
    Copyright © 2001 - 2023 Syncfusion Inc. All Rights Reserved