Export (0) Print
Expand All

Glyph.Paint Method

Provides paint logic.

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

public abstract void Paint(
	PaintEventArgs 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 override void Paint(PaintEventArgs pe)
    // Draw our glyph. It is simply a blue ellipse.
    pe.Graphics.FillEllipse(Brushes.Blue, Bounds);

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0
© 2015 Microsoft