Pen.Width

Pen.Width property

Gets or sets the width of this Pen, in units of the Graphics object used for drawing.

public float Width { get; set; }

Return Value

The width of this Pen.

Exceptions

exceptioncondition
ArgumentExceptionThe Width property is set on an immutable Pen, such as those returned by the Pens class.

See Also