Class Vector
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Syncfusion.JavaScript.DataVisualization.Models.Diagram
Assembly: Syncfusion.EJ.dll
Syntax
public class Vector : EJTagHelper
Constructors
Vector()
Initializes a new instance of the Vector class.
Declaration
public Vector()
Vector(Single, Single)
Initializes a new instance of the Vector class.
Declaration
public Vector(float angle, float distance)
Parameters
Type | Name | Description |
---|---|---|
System.Single | angle | |
System.Single | distance |
Properties
Angle
Gets or sets the length and angle between the second control point and end point of bezier segment
Declaration
[JsonProperty("angle")]
public float Angle { get; set; }
Property Value
Type | Description |
---|---|
System.Single | null |
Examples
Connector Connector = new Connector();
Connector.Name = "connector1";
Connector.SourcePoint = new DiagramPoint(100, 100);
Connector.TargetPoint = new DiagramPoint(200, 200);
Connector.VerticalAlign = VerticalAlignment.Top;
Connector.Segments.Add(new Segment() { Type = Segments.Straight,Vector2 = new Vector(75, 180) });
Model.Connectors.Add(Connector);
Distance
Gets or sets the length and angle between the second control point and end point of bezier segment
Declaration
[JsonProperty("distance")]
public float Distance { get; set; }
Property Value
Type | Description |
---|---|
System.Single | null |
Examples
Connector Connector = new Connector();
Connector.Name = "connector1";
Connector.SourcePoint = new DiagramPoint(100, 100);
Connector.TargetPoint = new DiagramPoint(200, 200);
Connector.VerticalAlign = VerticalAlignment.Top;
Connector.Segments.Add(new Segment() { Type = Segments.Straight,Vector2 = new Vector(75, 180) });
Model.Connectors.Add(Connector);