Blazor

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

    Show / Hide Table of Contents

    Class PathAnnotation

    Represents the block of text displayed over the connector.

    Inheritance
    System.Object
    DiagramObject
    Annotation
    PathAnnotation
    Implements
    IDiagramObject
    System.ICloneable
    Inherited Members
    Annotation.ID
    Annotation.Content
    Annotation.Visibility
    Annotation.Constraints
    Annotation.Hyperlink
    Annotation.Width
    Annotation.Height
    Annotation.RotationAngle
    Annotation.Style
    Annotation.HorizontalAlignment
    Annotation.VerticalAlignment
    Annotation.Margin
    Annotation.AdditionalInfo
    DiagramObject.OnPropertyChanged(String, Object, Object, IDiagramObject)
    DiagramObject.GetParent()
    Namespace: Syncfusion.Blazor.Diagram
    Assembly: Syncfusion.Blazor.dll
    Syntax
    public class PathAnnotation : Annotation, IDiagramObject, ICloneable

    Constructors

    PathAnnotation()

    Initializes a new instance of the PathAnnotation.

    Declaration
    public PathAnnotation()

    PathAnnotation(PathAnnotation)

    Creates a new instance of the PathAnnotation from the given PathAnnotation.

    Declaration
    public PathAnnotation(PathAnnotation src)
    Parameters
    Type Name Description
    PathAnnotation src

    PathAnnotation

    Properties

    Alignment

    Gets or sets the alignment of an annotation in a connector. By default, it is aligned at the center.

    Declaration
    public AnnotationAlignment Alignment { get; set; }
    Property Value
    Type Description
    AnnotationAlignment
    Remarks
    Below are the available alignment options
    1. Center, Annotation placed on the connector segment.
    2. Before,Annotation is placed at the top of the connector segment.
    3. After, Annotation is placed at the bottom of the connector segment.

    Displacement

    Gets or sets the displacement (margin) of an annotation from its actual position. Applicable only for connector.

    Declaration
    public DiagramPoint Displacement { get; set; }
    Property Value
    Type Description
    DiagramPoint

    Offset

    Gets or sets the offset of an annotation in a connector. By default, it is 0.5

    Declaration
    public double Offset { get; set; }
    Property Value
    Type Description
    System.Double

    SegmentAngle

    Gets or sets the segment angle of the connector.

    Declaration
    public bool SegmentAngle { get; set; }
    Property Value
    Type Description
    System.Boolean

    Methods

    Clone()

    Creates a new PathAnnotation that is a copy of the current annotation.

    Declaration
    public override object Clone()
    Returns
    Type Description
    System.Object

    PathAnnotation

    Overrides
    Annotation.Clone()

    Implements

    IDiagramObject
    System.ICloneable
    Back to top Generated by DocFX
    Copyright © 2001 - 2022 Syncfusion Inc. All Rights Reserved