Free Support Forum - aspose.com

Horizontal line height

Hi

I’m using the Graph-> Line class to create horizontal lines to have some separation between paragraphs.
how can I set the height(thickness) of a line? (for example 0.5mm or 0.2mm)

Thanks

Hi there,

Thanks for your inquiry. The basic measuring unit in Aspose.Pdf is point. There are 72 points in an inch. So one millimeter consist of 2.83 points so you can set line width to .5mm as following.


line.GraphInfo.LineWidth = 1.41F;

Please feel free to contact us for any further assistance.

Best Regards,

thank you