Property

Graphics.PenWidth


Warning

This item was deprecated in version 2019r2. Please use Graphics.PenSize as a replacement.

Description

The width in points used when drawing lines, ovals and rectangles.

Sample code

This example sets the PenWidth to 5 and the PenHeight to 1 point:

g.PenHeight = 1.0
g.PenWidth = 5
g.DrawRect(150, 10, 100, 100)

Compatibility

All project types on all supported operating systems.