Xceed SmartUI for WinForms v3.6 Documentation
Paint Event (SmartItem)


Xceed.SmartUI.v3.6 Assembly > Xceed.SmartUI Namespace > SmartItem Class : Paint Event
Raised when the SmartItem is painted.
Syntax
'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.

PropertyDescription
Gets the rectangle that represents the bounds of the SmartItem being drawn.  
Gets the System.Drawing.Graphics object used to draw.  
Gets a reference to the SmartItem being drawn.  
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