Skip to main content

Line

Version: 8.0

Line

The Line element is used for adding horizontal and vertical lines anywhere to the page. It can be added to any sections of the report (i.e. Header, Detail or Footer).

In order to add a line, select the Line element under the Toolbox, drag and drop it at the desired location on the page. The line can be resized and repositioned using the mouse, manually changing the values in the properties window or by changing the values in the source.

The line can be made solid, dotted, dash, etc. by selecting the desired Style from the properties window. The default line style is Solid. The line thickness can be varied by changing the value of its width property.

Properties​

The Line element has the following properties:

PropertiesDescription
CapA value indicating the cap style to end the Line with.
ColorA value indicating the color of the Line.
StyleA value indicating the style of the Line. See note below for customizing Line Style.
WidthA value indicating the width of the Line.
IdA value indicating the programmatic identifier of the Line.
X1A value indicating the starting X coordinate of the Line.
X2A value indicating the ending X coordinate of the Line.
Y1A value indicating the starting Y coordinate of the Line.
Y2A value indicating the ending Y coordinate of the Line.

Note on Customizing Line Style​

Customizing the Line Style to the exact number of dashes and spaces can be done by using the "Custom" item in the Line's Style property. If "Custom" is selected form the Line's Style property drop down menu then a user defined value must be entered to specify the exact line series style. The syntax for the Custom Line style is this:

     [LineOn1, LineOff1(, LineOn2, LineOff2...)]StartOffset

     LineOn, LineOff - Line style must be specified in on, off pairs of integer delineated with commas and no spaces between numbers or commas.  There can be one or more of these pairs

     StartOffset - The line offset is the offset into the specified series (the combination of on, off pairs) in which to start the line drawing.

Examples

     [5, 2]0 - This will display a line dash of 5 points followed by 2 points of space and another 5 points of line and continue in this fashion.

     [6, 1, 2, 1]2 - This will first display a line dash of 4 points (6 is the specified length but there is also an offset of 2 into that) followed by a 1 point space and then a 2 point dash, a 1 point space and a 6 point dash, etc.  Note in this example that a 2 point offset is the same as a 12 point offset because the series is a total of 10 points.