Property Size
Size
Gets the thickness of the pen, expressed in device-independent units. Must be greater than zero.
public double Size { get; }
Property Value
Examples
var pen = new Pen(new Color32(0, 0, 0), 2.5);
double thickness = pen.Size; // 2.5