Class LineObject
Represents a line object.
Implements
Inherited Members
Namespace: FastReport
Assembly: FastReport.Base.dll
Syntax
public class LineObject : ReportComponentBase, IFRSerializable
Remarks
Use the Border.Width, Border.Style and Border.Color properties to set the line width, style and color. Set the Diagonal property to true if you want to show a diagonal line.
Constructors
LineObject()
Initializes a new instance of the LineObject class with default settings.
Declaration
public LineObject()
Properties
DashPattern
Gets or sets collection of values for custom dash pattern.
Declaration
public FloatCollection DashPattern { get; set; }
Property Value
Type | Description |
---|---|
FloatCollection |
Remarks
Each element should be a non-zero positive number. If the number is negative or zero, that number is replaced by one.
Diagonal
Gets or sets a value indicating that the line is diagonal.
Declaration
public bool Diagonal { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
Remarks
If this property is false, the line can be only horizontal or vertical.
EndCap
Gets or sets the end cap settings.
Declaration
public CapSettings EndCap { get; set; }
Property Value
Type | Description |
---|---|
CapSettings |
StartCap
Gets or sets the start cap settings.
Declaration
public CapSettings StartCap { get; set; }
Property Value
Type | Description |
---|---|
CapSettings |
Methods
Assign(Base)
Declaration
public override void Assign(Base source)
Parameters
Type | Name | Description |
---|---|---|
Base | source |
Overrides
Draw(FRPaintEventArgs)
Declaration
public override void Draw(FRPaintEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
FRPaintEventArgs | e |
Overrides
Serialize(FRWriter)
Declaration
public override void Serialize(FRWriter writer)
Parameters
Type | Name | Description |
---|---|---|
FRWriter | writer |
Overrides
Validate()
Declaration
public override List<ValidationError> Validate()
Returns
Type | Description |
---|---|
System.Collections.Generic.List<ValidationError> |