Blazor

Upgrade Guide User Guide Demos Support Forums Download
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class NodeMargin - Blazor API Reference | Syncfusion

    Show / Hide Table of Contents

    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.

    Inheritance
    System.Object
    SfDiagramBase
    DiagramMargin
    NodeMargin
    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 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()
    Back to top Generated by DocFX
    Copyright © 2001 - 2021 Syncfusion Inc. All Rights Reserved