Visual Basic (Declaration) | |
---|---|
Public Event PaintBackground() As PaintEventHandler |
Visual Basic (Usage) | Copy Code |
---|---|
|
C# | |
---|---|
public event PaintEventHandler PaintBackground() |
C++/CLI | |
---|---|
public: event PaintEventHandler PaintBackground(); |
For an example, refer to RasterImageList.
This event is fired from within the Paint event of this control.
The event handler receives an argument of type PaintEventArgs containing data related to this event. The following PaintEventArgs properties provide information specific to this event.
Property | Description |
---|---|
ClipRectangle | Gets the rectangle in which to paint. |
Graphics | Gets the graphics used to paint. |
Target Platforms: Microsoft .NET Framework 2.0, Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family