BCGControlBar Library for .NET
SetRectangle(Point,Size) Method




The coordinates of the upper-left corner of the boundaries in client coordinates of the parent command bar.
Specifies the width and the height of the boundaries.
Sets the boundaries of the toolbar button with specified size and location.
Syntax
'Declaration
 
Public Overloads Overridable Sub SetRectangle( _
   ByVal location As Point, _
   ByVal size As Size _
) 
'Usage
 
Dim instance As ToolbarButton
Dim location As Point
Dim size As Size
 
instance.SetRectangle(location, size)
public virtual void SetRectangle( 
   Point location,
   Size size
)
public: virtual void SetRectangle( 
   Point location,
   Size size
) 
public:
virtual void SetRectangle( 
   Point location,
   Size size
) 

Parameters

location
The coordinates of the upper-left corner of the boundaries in client coordinates of the parent command bar.
size
Specifies the width and the height of the boundaries.
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
Overload List

Send Feedback