Pen()

Pen::Pen(const Color&) constructor

Constructs a new Pen object representing the specified color.

System::Drawing::Pen::Pen(const Color &color)

Arguments

ParameterTypeDescription
colorconst Color&The color of the pen represented by the object being constructed

Pen::Pen(const Color&, float) constructor

Constructs a new Pen object representing the specified color and width.

System::Drawing::Pen::Pen(const Color &color, float width)

Arguments

ParameterTypeDescription
colorconst Color&The color of the pen represented by the object being constructed
widthfloatThe width of the pen represented by the object being constructed

Pen::Pen(const SharedPtr<Brush>&) constructor

Constructs a new Pen object and initializes it with the specified Brush object.

System::Drawing::Pen::Pen(const SharedPtr<Brush> &brush)

Arguments

ParameterTypeDescription
brushconst SharedPtr<Brush>&The Brush object that specifies the fill properties of the pen represented by the object being constructed

Pen::Pen(const SharedPtr<Brush>&, float) constructor

Constructs a new Pen object and initializes it with the specified Brush object.

System::Drawing::Pen::Pen(const SharedPtr<Brush> &brush, float width)

Arguments

ParameterTypeDescription
brushconst SharedPtr<Brush>&The Brush object that specifies the fill properties of the pen represented by the object being constructed
widthfloatThe width of the pen represented by the object being constructed

See Also