Class DiagramPoint
Represents an ordered pair of integer x- and y-coordinates that defines a point in a two-dimensional plane.
Inherited Members
Namespace: Syncfusion.Blazor.Diagram
Assembly: Syncfusion.Blazor.dll
Syntax
public class DiagramPoint : DiagramObject, IDiagramObject, ICloneable
Constructors
DiagramPoint()
Initializes a new instance of the DiagramPoint.
Declaration
public DiagramPoint()
DiagramPoint(DiagramPoint)
Creates a new instance of the DiagramPoint from the given point.
Declaration
public DiagramPoint(DiagramPoint src)
Parameters
Type | Name | Description |
---|---|---|
DiagramPoint | src | Point. |
DiagramPoint(Nullable<Double>, Nullable<Double>)
Initializes a new instance of the DiagramPoint struct with the specified coordinates.
Declaration
public DiagramPoint(Nullable<double> x, Nullable<double> y)
Parameters
Type | Name | Description |
---|---|---|
System.Nullable<System.Double> | x | The horizontal position of the point. |
System.Nullable<System.Double> | y | The vertical position of the point. |
Properties
X
Gets or sets the x-coordinate of this point.
Declaration
public double X { get; set; }
Property Value
Type |
---|
System.Double |
Examples
Connector connector = new Connector()
{
ID = "connector1",
Type = ConnectorSegmentType.Straight,
SourcePoint = new DiagramPoint() { X = 100, Y = 100 },
TargetPoint = new DiagramPoint() { X = 200, Y = 200 },
};
Y
Gets or sets the y-coordinate of this point.
Declaration
public double Y { get; set; }
Property Value
Type |
---|
System.Double |
Examples
<example>
<code lang="Razor">
<![CDATA[
Connector connector = new Connector()
{
ID = "connector1",
Type = ConnectorSegmentType.Straight,
SourcePoint = new DiagramPoint() { X = 100, Y = 100 },
TargetPoint = new DiagramPoint() { X = 200, Y = 200 },
};
Methods
Clone()
Creates a new point that is a copy of the current point.
Declaration
public override object Clone()
Returns
Type | Description |
---|---|
System.Object | it reurns Point |
Overrides
Implements
System.ICloneable