NetXP 3.0 Reference

CommandBarItem.Draw Method 

Draws the command bar item on a command bar.

[Visual Basic]
MustOverride Public Sub Draw( _
   ByVal parent As CommandBar, _
   ByVal g As Graphics, _
   ByVal state As DrawItemState, _
   ByVal rect As Rectangle _
)
[C#]
public abstract void Draw(
   CommandBar parent,
   Graphics g,
   DrawItemState state,
   Rectangle rect
);

Parameters

parent
The command bar.
g
The graphics object.
state
The item's draw state.
rect
The item's bounds rectangle.

See Also

CommandBarItem Class | NETXP.Controls.Bars Namespace