menu

Blazor

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class Vector - Blazor API Reference | Syncfusion

    Show / Hide Table of Contents

    Class Vector

    Describes the length and angle between the control point and the start point of the bezier segment.

    Inheritance
    System.Object
    DiagramObject
    Vector
    Implements
    IDiagramObject
    System.ICloneable
    Inherited Members
    DiagramObject.GetParent()
    DiagramObject.OnPropertyChanged(String, Object, Object, IDiagramObject)
    Namespace: Syncfusion.Blazor.Diagram
    Assembly: Syncfusion.Blazor.dll
    Syntax
    public class Vector : DiagramObject, IDiagramObject, ICloneable

    Constructors

    Vector()

    Initializes a new instance of the Vector.

    Declaration
    public Vector()

    Vector(Vector)

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

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

    Vector

    Properties

    Angle

    Defines the angle between the connector endpoint and control point of the bezier segment.

    Declaration
    public double Angle { get; set; }
    Property Value
    Type
    System.Double
    Examples
    Connector connector = new Connector()
    {
        ID = "connector1",
        Type = ConnectorSegmentType.Bezier,
          Segments=new DiagramObjectCollection<ConnectorSegment>()
          {
             new BezierSegment(){Type=ConnectorSegmentType.Bezier, 
             Vector1=new Vector{Angle=90, Distance=75 }, 
             Vector2=new Vector{Angle=90, Distance=75 }
          }
        SourcePoint = new DiagramPoint() { X = 100, Y = 100 },
        TargetPoint = new DiagramPoint() { X = 200, Y = 200 },
    };

    Distance

    Defines the distance between the connector endpoint and control point of the bezier segment.

    Declaration
    public double Distance { get; set; }
    Property Value
    Type
    System.Double
    Examples
    Connector connector = new Connector()
    {
        ID = "connector1",
        Type = ConnectorSegmentType.Bezier,
          Segments=new DiagramObjectCollection<ConnectorSegment>()
          {
             new BezierSegment(){Type=ConnectorSegmentType.Bezier, 
             Vector1=new Vector{Angle=90, Distance=75 }, 
             Vector2=new Vector{Angle=90, Distance=75 }
          }
        SourcePoint = new DiagramPoint() { X = 100, Y = 100 },
        TargetPoint = new DiagramPoint() { X = 200, Y = 200 },
    };

    Methods

    Clone()

    Creates a new vector that is the copy of the current vector.

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

    Vector

    Overrides
    DiagramObject.Clone()

    Implements

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