Type Default Read Only Description
[C#]
double

[Visual Basic]
Double
1.0 No The current line width.

 

   

Notes
 

The width determines the width of lines drawn using methods like AddLine and FrameRect. The width is measured in the current Units.

The AddLine method creates lines centered on the points you provide. This means if you draw a horizontal line with a width of ten the line will extend five points above your start position and five points below it.

The FrameRect method draws lines outside the rectangle you provide. So if you frame a rectangle using a width of ten, the drawn rectangle will extend ten points above, below, to the left and to the right of your specified rectangle. No drawing will fall within the rectangle.

 

   

Example
 

The following code adds two lines to a document. The first line has a width of ten points and the second has a width of twenty points.

 

using (Doc doc = new Doc()) {   doc.Width = 10;   doc.AddLine(10, 10, 300, 300);   doc.Width = 20;   doc.AddLine(10, 300, 300, 10);   doc.Save(Server.MapPath("docwidth.pdf")); }


docwidth.pdf