NetXP 3.0 Reference

CommandBarItem.CalculateSize Method 

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

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

Parameters

parent
The command bar.
g
The graphics object.

Return Value

The size of the item.

See Also

CommandBarItem Class | NETXP.Controls.Bars Namespace