NetXP 3.0 Reference

CommandBarItem.CalculateSizeMenu Method 

Calculates the size of this command bar item on a popup menu.

[Visual Basic]
MustOverride Public Function CalculateSizeMenu( _
   ByVal parent As CommandContextMenu, _
   ByVal g As Graphics _
) As Size
[C#]
public abstract Size CalculateSizeMenu(
   CommandContextMenu parent,
   Graphics g
);

Parameters

parent
The popup menu.
g
The graphics object.

Return Value

The size of the item.

See Also

CommandBarItem Class | NETXP.Controls.Bars Namespace