BCGControlBar Library for .NET
GetTotalButtonSize Method (CommandBar)




Specifies the orientation of the command bar to calculate a total button size. If true, the command bar is located horizontally and total button width will be returned, otherwise,  the button is located vertically and total button height will be returned.
Returns the summary width or height of the buttons from the command bar.
Syntax
'Declaration
 
Public Overridable Function GetTotalButtonSize( _
   ByVal horz As Boolean _
) As Integer
'Usage
 
Dim instance As CommandBar
Dim horz As Boolean
Dim value As Integer
 
value = instance.GetTotalButtonSize(horz)
public virtual int GetTotalButtonSize( 
   bool horz
)
public: virtual int GetTotalButtonSize( 
   bool horz
) 
public:
virtual int GetTotalButtonSize( 
   bool horz
) 

Parameters

horz
Specifies the orientation of the command bar to calculate a total button size. If true, the command bar is located horizontally and total button width will be returned, otherwise,  the button is located vertically and total button height will be returned.
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

CommandBar Class
CommandBar Members

Send Feedback