The "Line" object

Top  Previous  Next

The "Line" object can display horizontal, vertical or diagonal line. The object is as follows:

 

lineObject

 

If possible, use the object's border instead of "Line" object. This will simplify the report and avoid possible problems with the export to different formats.

 

FastReport designer has convenient tools for drawing a line. In order to insert a line into a report, click the btn106 button on the "Objects" toolbar and in the menu choose the "Line" object or "Diagonal Line". Place the mouse cursor at the location where the line will start from. Then left click and hold the mouse, in order to draw the line. After this, you can draw the line again. When all the lines have been drawn, click on the btn100 button on the "Objects" toolbar.

 

An ordinary line differs from a diagonal line in that you can make it only vertical or horizontal.

 

Do not choose the "Double" line style for this object. This style applies only to the object's border.

 

The "Line" object has the following properties:

 

Property

Description

Diagonal

The property determines weather the line is diagonal. An ordinary line can be turned into a diagonal one by enabling this property.

StartCap, EndCap

These properties allow to setup the line caps. You can use one of the following cap styles:

 

ellipse;
rectangle;
diamond;
arrow.

 

Size of the cap can be set in the Width, Height properties of the cap. You can configure caps for each end of the line.