NetXP 3.0 Reference

CommandBarItem.DrawMenu Method 

Draws the command bar item on a popup menu.

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

Parameters

parent
The popup menu.
g
The graphics object.
state
The item's draw state.
rect
The item's bounds rectangle.

See Also

CommandBarItem Class | NETXP.Controls.Bars Namespace