Glyph::Paint Method (PaintEventArgs^)

 

Provides paint logic.

Namespace:   System.Windows.Forms.Design.Behavior
Assembly:  System.Design (in System.Design.dll)

public:
virtual void Paint(
	PaintEventArgs^ pe
) abstract

Parameters

pe
Type: System.Windows.Forms::PaintEventArgs^

A PaintEventArgs that contains the event data.

The Paint method is an abstract method that forces Glyph implementations to provide paint logic. The pe parameter contains the Graphics related to the adorner window of the BehaviorService.

The following example demonstrates how to override the Paint to draw a glyph. This code example is part of a larger example provided for the BehaviorService class.

public:
    virtual void Paint(PaintEventArgs^ pe) override
    {
        // Draw our glyph.  Our's is simple:  a blue ellipse.
        pe->Graphics->FillEllipse(Brushes::Blue, Bounds);
    }

.NET Framework
Available since 2.0
Return to top
Show: