Class LineShape
Represents a line shape.
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.DLS
Assembly: Syncfusion.DLS.Base.dll
Syntax
public class LineShape : Shape, IEntityBase, IXDLSSerializable, IShape, ILeafWidget, IWidget
Remarks
Supported by Essential PDF only.
Constructors
LineShape(Canvas)
Declaration
public LineShape(Canvas canvas)
Parameters
Type | Name | Description |
---|---|---|
Canvas | canvas |
Properties
End
Gets / sets end location of the line.
Declaration
public PointF End { get; set; }
Property Value
Type |
---|
System.Drawing.PointF |
Start
Gets / sets start location of the line.
Declaration
public PointF Start { get; set; }
Property Value
Type |
---|
System.Drawing.PointF |
X1
Gets / sets start X coordinate of the line.
Declaration
public float X1 { get; set; }
Property Value
Type |
---|
System.Single |
X2
Gets / sets end X coordinate of the line.
Declaration
public float X2 { get; set; }
Property Value
Type |
---|
System.Single |
Y1
Gets / sets start Y coordinate of the line.
Declaration
public float Y1 { get; set; }
Property Value
Type |
---|
System.Single |
Y2
Gets / sets end Y coordinate of the line.
Declaration
public float Y2 { get; set; }
Property Value
Type |
---|
System.Single |
Methods
ReadXmlAttributes(IXDLSAttributeReader)
Declaration
protected override void ReadXmlAttributes(IXDLSAttributeReader reader)
Parameters
Type | Name | Description |
---|---|---|
IXDLSAttributeReader | reader |
Overrides
WriteXmlAttributes(IXDLSAttributeWriter)
Declaration
protected override void WriteXmlAttributes(IXDLSAttributeWriter writer)
Parameters
Type | Name | Description |
---|---|---|
IXDLSAttributeWriter | writer |
Overrides
Explicit Interface Implementations
IWidget.Draw(CustomGraphics, LayoutedWidget)
Declaration
void IWidget.Draw(CustomGraphics cg, LayoutedWidget ltWidget)
Parameters
Type | Name | Description |
---|---|---|
CustomGraphics | cg | |
LayoutedWidget | ltWidget |