Edita

Comparteix a través de


Pen.Brush Property

Definition

Gets or sets the Brush that determines attributes of this Pen.

public:
 property System::Drawing::Brush ^ Brush { System::Drawing::Brush ^ get(); void set(System::Drawing::Brush ^ value); };
public System.Drawing.Brush Brush { get; set; }
member this.Brush : System.Drawing.Brush with get, set
Public Property Brush As Brush

Property Value

A Brush that determines attributes of this Pen.

Exceptions

The Brush property is set on an immutable Pen, such as those returned by the Pens class.

Remarks

Assigning this property causes the pen to draw filled lines and curves. It overrides the Color property of the Pen.

Applies to