Class LineElement
LineElement class.
Implements
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Syncfusion.SVG.IO
Assembly: Syncfusion.Diagram.Base.dll
Syntax
public class LineElement : SuperElement, IElement, IStrokeAttributes, IFillAttributes, ITransformAttribute, IStyleAttribute, IFontAttributes, IViewBoxAttribute, IOpacityAttribute, IClipingAttribute
Constructors
LineElement()
Initializes a new instance of the LineElement class.
Declaration
public LineElement()
Properties
X1
Gets or sets the length.
Declaration
public Length X1 { get; set; }
Property Value
Type | Description |
---|---|
Length | The length. |
X2
Gets or sets the length.
Declaration
public Length X2 { get; set; }
Property Value
Type | Description |
---|---|
Length | The length. |
Y1
Gets or sets the length.
Declaration
public Length Y1 { get; set; }
Property Value
Type | Description |
---|---|
Length | The length. |
Y2
Gets or sets the length.
Declaration
public Length Y2 { get; set; }
Property Value
Type | Description |
---|---|
Length | The length. |
Methods
DrawSelf(Graphics)
Draws self.
Declaration
protected override void DrawSelf(Graphics g)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.Graphics | g | The graphics. |
Overrides
FromCoordinates(Single, Single, Single, Single)
Creates the LineElement from its coords.
Declaration
public static LineElement FromCoordinates(float x1, float y1, float x2, float y2)
Parameters
Type | Name | Description |
---|---|---|
System.Single | x1 | The x-location of the first point. |
System.Single | y1 | The y-location of the first point. |
System.Single | x2 | The x-location of the second point. |
System.Single | y2 | The y-location of the second point. |
Returns
Type | Description |
---|---|
LineElement | Created LineElement. |
FromPoints(PointF, PointF)
Creates the LineElement from its coords.
Declaration
public static LineElement FromPoints(PointF pt1, PointF pt2)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.PointF | pt1 | The first point. |
System.Drawing.PointF | pt2 | The second point. |
Returns
Type | Description |
---|---|
LineElement | Created LineElement. |