Pen.Width

Pen.Width property

获取或设置此 Pen 的宽度,单位为用于绘图的 Graphics 对象的单位。

public float Width { get; set; }

Property Value

Pen 的宽度。

异常

异常条件
ArgumentExceptionWidth 属性设置在不可变的 Pen 上,例如由 Pen 类返回的对象。

另请参见