Difference between revisions of "Graphics.PenSize"

From Xojo Documentation

 
Line 17: Line 17:
 
g.DrawRectangle(150, 10, 100, 100)
 
g.DrawRectangle(150, 10, 100, 100)
 
</rbcode>
 
</rbcode>
 +
 +
[[Category:API 2.0]]

Latest revision as of 15:30, 7 October 2019

Property (As Double )
aGraphics.PenSize = newDoubleValue
or
DoubleValue = aGraphics.PenSize

New in 2019r2

Supported for all project types and targets.

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

Sample Code

This example sets the PenSize to 5 point:

g.PenSize = 5
g.DrawRectangle(150, 10, 100, 100)