LEADTOOLS Windows Forms (Leadtools.WinForms assembly) Send comments on this topic. | Back to Introduction - All Topics | Help Version 17.0.3.30
PaintBackground Event
See Also 
Leadtools.WinForms Namespace > RasterImageList Class : PaintBackground Event



Occurs when the background of the control is redrawn.

Syntax

Visual Basic (Declaration) 
Public Event PaintBackground As PaintEventHandler
Visual Basic (Usage)Copy Code
Dim instance As RasterImageList
Dim handler As PaintEventHandler
 
AddHandler instance.PaintBackground, handler
C# 
public event PaintEventHandler PaintBackground
C++/CLI 
public:
event PaintEventHandler^ PaintBackground

Event Data

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.

PropertyDescription
ClipRectangle Gets the rectangle in which to paint.
Graphics Gets the graphics used to paint.

Example

For an example, refer to RasterImageList.

Remarks

This event is fired from within the System.Windows.Forms.Control.Paint event of this control.

The event handler receives an argument of type System.Windows.Forms.PaintEventArgs containing data related to this event. The following System.Windows.Forms.PaintEventArgs properties provide information specific to this event.

Property Description
System.Windows.Forms.PaintEventArgs.ClipRectangle Gets the rectangle in which to paint.
System.Windows.Forms.PaintEventArgs.Graphics Gets the graphics used to paint.

Requirements

Target Platforms: Microsoft .NET Framework 2.0, Windows 2000, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7

See Also