BCGControlBar Library for .NET
Stretch Method (CommandBar)




Specifies the new width of the CommandBar  on horizontally resizing and new height of the CommandBar  on  vertically resizing.
Specifies the direction of the resizing of the CommandBar.
Specifies if the resizing will be strict.

Changes the size of the CommandBar to the specified value.

Syntax
'Declaration
 
Public Overridable Sub Stretch( _
   ByVal newSize As Integer, _
   ByVal horz As Boolean, _
   ByVal strict As Boolean _
) 
'Usage
 
Dim instance As CommandBar
Dim newSize As Integer
Dim horz As Boolean
Dim strict As Boolean
 
instance.Stretch(newSize, horz, strict)
public virtual void Stretch( 
   int newSize,
   bool horz,
   bool strict
)
public: virtual void Stretch( 
   int newSize,
   bool horz,
   bool strict
) 
public:
virtual void Stretch( 
   int newSize,
   bool horz,
   bool strict
) 

Parameters

newSize
Specifies the new width of the CommandBar  on horizontally resizing and new height of the CommandBar  on  vertically resizing.
horz
Specifies the direction of the resizing of the CommandBar.
strict
Specifies if the resizing will be strict.
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