Blazor

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

    Show / Hide Table of Contents

    Class ConnectorAnnotationMargin

    Specifies the space around the connector annotation.

    Inheritance
    System.Object
    SfDiagramBase
    DiagramMargin
    ConnectorAnnotationMargin
    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 ConnectorAnnotationMargin : DiagramMargin
    Examples
    <SfDiagram Height="600px" Connectors="@ConnectorCollection">
    </SfDiagram>
    @code
    {
       //Defines diagram's connector collection
       public ObservableCollection<DiagramConnector> ConnectorCollection { get; set; }
       protected override void OnInitialized()
       {
         ConnectorCollection = new ObservableCollection<DiagramConnector>();
         DiagramConnector Connector = new DiagramConnector()
         {
            SourcePoint = new ConnectorSourcePoint() { X = 300, Y = 40 },
            TargetPoint = new ConnectorTargetPoint() { X = 400, Y = 160 },
            Type = Segments.Orthogonal,
            Style = new ConnectorShapeStyle() { StrokeColor = "#6BA5D7" },
            Annotations = new ObservableCollection<DiagramConnectorAnnotation>()
            {
              new DiagramConnectorAnnotation() { Content = "Annotation length will be varied", Width = 50, Height = 50 ,Margin = new ConnectorAnnotationMargin(){ Left=10} },
            }
          };
          ConnectorCollection.Add(Connector);
        }
     }

    Constructors

    ConnectorAnnotationMargin()

    Specifies the space around the connector annotation.

    Declaration
    public ConnectorAnnotationMargin()
    Back to top Generated by DocFX
    Copyright © 2001 - 2023 Syncfusion Inc. All Rights Reserved