Leadtools.WinForms Namespace > RasterThumbnailBrowser Class : DrawItem Event |
public event EventHandler<RasterImageListDrawItemEventArgs> DrawItem
'Declaration Public Event DrawItem As EventHandler(Of RasterImageListDrawItemEventArgs)
'Usage Dim instance As RasterThumbnailBrowser Dim handler As EventHandler(Of RasterImageListDrawItemEventArgs) AddHandler instance.DrawItem, handler
public event EventHandler<RasterImageListDrawItemEventArgs> DrawItem
add_DrawItem(function(sender, e)) remove_DrawItem(function(sender, e))
public: event EventHandler<RasterImageListDrawItemEventArgs^>^ DrawItem
The event handler receives an argument of type RasterImageListDrawItemEventArgs containing data related to this event. The following RasterImageListDrawItemEventArgs properties provide information specific to this event.
Property | Description |
---|---|
Graphics | The Graphics object into which the item should be drawn. |
Item | The RasterImageListItem to draw. |
When you set the ViewStyle property to RasterImageListViewStyle.OwnerDraw, the RasterImageList control will fire the DrawItem event for each event that needs to be drawn. The RasterImageListDrawItemEventArgs argument passed to a DrawItem event handler provides a System.Drawing.Graphics object that enables you to perform drawing and other graphical operations on the surface of the RasterImageList along with the RasterImageListItem object that needs to be drawn.
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2