BCGControlBar Library for .NET
OnSmartCalcSize Method




A ToolbarButtonCollapseState to specify the size of the button.
Calculates the size of  the ToolBarButton accroding the specified ToolbarButtonCollapseState
Syntax
'Declaration
 
Public Overridable Function OnSmartCalcSize( _
   ByVal stateType As ToolbarButtonCollapseState _
) As Size
'Usage
 
Dim instance As ToolbarButton
Dim stateType As ToolbarButtonCollapseState
Dim value As Size
 
value = instance.OnSmartCalcSize(stateType)
public virtual Size OnSmartCalcSize( 
   ToolbarButtonCollapseState stateType
)
public: virtual Size OnSmartCalcSize( 
   ToolbarButtonCollapseState stateType
) 
public:
virtual Size OnSmartCalcSize( 
   ToolbarButtonCollapseState stateType
) 

Parameters

stateType
A ToolbarButtonCollapseState to specify the size of the button.
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

Reference

ToolbarButton Class
ToolbarButton Members

Send Feedback