Class DiagramPoint
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 DiagramPoint : EJTagHelper
Constructors
DiagramPoint()
Initializes a new instance of the DiagramPoint class.
Declaration
public DiagramPoint()
DiagramPoint(Single, Single)
Initializes a new instance of the DiagramPoint class.
Declaration
public DiagramPoint(float x, float y)
Parameters
Type | Name | Description |
---|---|---|
System.Single | x | |
System.Single | y |
Properties
X
Gets or sets the diagram point at the x direction
Declaration
[JsonProperty("x")]
public float X { get; set; }
Property Value
Type | Description |
---|---|
System.Single | -1 |
Examples
DiagramProperties Model = new DiagramProperties();
Collection Collection = new Collection();
Collection.Add(new Label() { Offset = new DiagramPoint() { X = .5f, Y = .5f } });
Node Node = new Node() { Labels = Collection };
Y
Gets or sets the diagram point at the y direction
Declaration
[JsonProperty("y")]
public float Y { get; set; }
Property Value
Type | Description |
---|---|
System.Single | -1 |
Examples
DiagramProperties Model = new DiagramProperties();
Collection Collection = new Collection();
Collection.Add(new Label() { Offset = new DiagramPoint() { X = .5f, Y = .5f } });
Node Node = new Node() { Labels = Collection };