We're mentioning TLine here because, for a long time, Delphi developers had no simple way to draw a line on a form (with the standard components and without painting on the Canvas directly, of course). Now, you can simply drop a TLine on a form or frame and set its properties to achieve what you are looking for.
The Stroke and Fill properties are there to help you out with this! We covered them extensively in the previous section, so if you want to learn more, please take a look at that section.
Let's focus on three specific properties that were introduced by the TLine class:
- LineType: This property deals with the fact that, like all TShape descendants, a TLine is actually placed like a rectangle, and you may want to determine where to put your line inside this rectangle. The values you can assign to this property are quite straightforward:
- Bottom/Top/Left/Right: Use these values to draw the line on the corresponding...