'Declaration <CategoryAttribute("Appearance")> <DescriptionAttribute("Raised when the SmartItem is painted.")> <BrowsableAttribute(True)> Public Event Paint As SmartItemPaintEventHandler
'Usage Dim instance As SmartItem Dim handler As SmartItemPaintEventHandler AddHandler instance.Paint, handler
[Category("Appearance")] [Description("Raised when the SmartItem is painted.")] [Browsable(true)] public event SmartItemPaintEventHandler Paint
Event Data
The event handler receives an argument of type SmartItemPaintEventArgs containing data related to this event. The following SmartItemPaintEventArgs properties provide information specific to this event.
Property | Description |
---|---|
Bounds | Gets the rectangle that represents the bounds of the SmartItem being drawn. |
Graphics | Gets the System.Drawing.Graphics object used to draw. |
Item | Gets a reference to the SmartItem being drawn. |
SmartPaint | Gets a reference to a SmartPaint object which contains various drawing methods. |
Requirements
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
See Also