--- title: "Line Element" slug: "line-element" updated: 2024-10-10T11:51:07Z published: 2024-10-10T11:51:07Z canonical: "docs.ancoresoft.com/line-element" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.ancoresoft.com/llms.txt > Use this file to discover all available pages before exploring further. # Line Element ## Intro ancoreShare Extension allows you to add line elements on the reports for **creating better structures** in your report, or just to **show segregatio**n between elements and sections. TipWhile adding Qlik Objects to your report, use the pin icon to see the [Preview window](/ancoreshare-extension/docs/preview-window) showing a preview of your report draft. Use the refresh button to see your changes in preview simultaneously. ## Basic Settings Add and select a line element and set general element properties. | ### Add line element 1. On the **properties** **panel**, click **Report** **Elements** **>** **Add** **Element**. 2. Click on **Type** and select **Line** from the dropdown list. **NOTE:** The **Add Element button** is always available at the bottom of the **properties panel**. For multiple elements, please scroll down to see the button. ![](https://cdn.document360.io/18d7facc-a391-4796-9eeb-b1efbd1aaa20/Images/Documentation/image-1673878575461.png) | | | --- | --- | | ### Caption When you add a line element, the **caption** is automatically populated as **Line**. You can rename this field to provide a meaningful caption that will help you in navigating through your report elements. | ![](https://cdn.document360.io/18d7facc-a391-4796-9eeb-b1efbd1aaa20/Images/Documentation/image-1673878636480.png) | | ### Line width and color Use the slider to define the **Line width** (thickness). The unit of the line width is always in points (pt). Use the color picker to choose the line **Color**. | ![](https://cdn.document360.io/18d7facc-a391-4796-9eeb-b1efbd1aaa20/Images/Documentation/image-1673878712612.png) | | ### Calculation condition In the **Calculation Condition** field, click ***fx*** to open the expression editor. Specify an expression to set a condition that needs to be fulfilled (true) for the object to be displayed on the report. It works just like the [Activation Condition](/ancoreshare-extension/docs/activation-condition) but is specific to each report element. Refer to the [Qlik documentation](https://help.qlik.com/en-US/sense/May2021/Subsystems/Hub/Content/Sense_Hub/Expressions/work-with-expression-editor.htm) to know more about expressions. | ![](https://cdn.document360.io/18d7facc-a391-4796-9eeb-b1efbd1aaa20/Images/Documentation/image-1673878755345.png) | | ## Element Properties | | | ### Anchor If there is another existing element on your sheet that comes before in order, you will see an **Anchor** tab. This setting defines the relative position of elements on the report page. Drag the orange box "B" to set the position of this line element with respect to the preceding element "A" or choose an anchor position from the drop-down list above. | ![](https://cdn.document360.io/18d7facc-a391-4796-9eeb-b1efbd1aaa20/Images/Documentation/anchor_element(2).png) | | ### Position Click the **Position** tab to define general position settings for the line element on your report. - Specify whether to place the text element in the **Body** or **Header** of the report page. Elements in the header will be repeated on every page. For example, use this setting to display a line that visually separates the header from the body on every page of your report. - Optionally, select the **Place element on new page** to add a new page to the report and start with this line element there. - Use the **alignment** options to align the line element on the report page. To learn more about how all the positioning and sizing settings work together and affect each other, and how to precisely position the elements on your report by combining them, go to [Positioning and Sizing Elements](/ancoreshare-extension/docs/positioning-and-sizing-elements). | ![](https://cdn.document360.io/18d7facc-a391-4796-9eeb-b1efbd1aaa20/Images/Documentation/image-1673809730755.png) | | ### Size Click the **Size** tab to set the **Type** and **Width** of the line element size on your report. You can choose from any of the following: - **Automatic:** By default, the line element takes 100% of the page width. - **Percentage of page size:** Select this option to define the **Width** as a percentage of the report page. - **Numeric value**: Select this option to provide a specific **Width** value manually. By default, the width is measured in millimeters, but you can change the page unit in the [Report Settings](/ancoreshare-extension/docs/report-and-page-settings#page-settings). A line element has no height setting, but you can set the thickness of the line in Basic Settings.To learn more about how all the positioning and sizing settings work together and affect each other, and how to precisely position the elements on your report by combining them, go to [Positioning and Sizing elements](/ancoreshare-extension/docs/positioning-and-sizing-elements). | ![](https://cdn.document360.io/18d7facc-a391-4796-9eeb-b1efbd1aaa20/Images/Documentation/image-1673878827219.png) | | ### Spacing Click the **Spacing** tab to define the distance of the line element from neighboring elements on your report. You can do this separately for **Left**, **Right**, **Top**, and **Bottom**. The behavior of spacing depends on the selected [size type](https://docs.ancoresoft.com/docs/line-element#size). 1. If you have set the size type as **Automatic** or **Percentage of page size**, then the spacing will act as **padding** and affect the **visual** **size** of the line element. 2. If you have set the size type as **Numeric**, the spacing will act as a **margin** and affect the actual **position** of the line element. To learn more about how all the positioning and sizing settings work together and affect each other, and how to precisely position the elements on your report by combining them, go to [Positioning and Sizing elements](/ancoreshare-extension/docs/positioning-and-sizing-elements). | ![](https://cdn.document360.io/18d7facc-a391-4796-9eeb-b1efbd1aaa20/Images/Documentation/spacing(2).png) | | ### Deleting line element At any time, you can click the **Delete** button to delete the line element. Optionally, right-click the element in the **properties** **panel** and click **Delete**. | | --- | | ![](https://cdn.document360.io/18d7facc-a391-4796-9eeb-b1efbd1aaa20/Images/Documentation/Deleting_chart.png) | ![](https://cdn.document360.io/18d7facc-a391-4796-9eeb-b1efbd1aaa20/Images/Documentation/deleting-element(2).png) | You can add as many lines as you want using the **Add Element** button and repeat the procedure explained above. Here's an example showing a report with line elements (highlighted in Pink) positioned with other elements for creating structured reports. ![](https://cdn.document360.io/18d7facc-a391-4796-9eeb-b1efbd1aaa20/Images/Documentation/lines-example(1).png) --- ##### Next Steps: - Now add [Charts](/ancoreshare-extension/docs/qlik-object-charts), [Text](/ancoreshare-extension/docs/text-element), or [Tables](/ancoreshare-extension/docs/qlik-object-tables) to your report - Learn more about [positioning](/ancoreshare-extension/docs/positioning-and-sizing-elements) all elements - See a report draft in the [preview window](/ancoreshare-extension/docs/preview-window) - Or, [share and export](/ancoreshare-extension/docs/share-report-and-export-settings) the report ## Related - [Preview Window](/preview-window.md) - [Report Elements](/report-elements.md) - [Sharing Reports - Deployment](/share-report-and-export-settings.md)