BCGControlBar Library for .NET
AlignRectToRect Method




Specifies the rectangle to place the control after tracking.
Specifies the current boundaries of the control.
Specifies the position and manner in which a control is docked.
Called by the framework on tracking any control. Returns the rectangle to dock the control.
Syntax
'Declaration
 
Public Shared Function AlignRectToRect( _
   ByVal rectTarget As Rectangle, _
   ByVal rectOrg As Rectangle, _
   ByVal dock As DockStyle, _
   ByVal limitSize As Size _
) As Rectangle
'Usage
 
Dim rectTarget As Rectangle
Dim rectOrg As Rectangle
Dim dock As DockStyle
Dim limitSize As Size
Dim value As Rectangle
 
value = GlobalUtils.AlignRectToRect(rectTarget, rectOrg, dock, limitSize)
public static Rectangle AlignRectToRect( 
   Rectangle rectTarget,
   Rectangle rectOrg,
   DockStyle dock,
   Size limitSize
)
public: static Rectangle AlignRectToRect( 
   Rectangle rectTarget,
   Rectangle rectOrg,
   DockStyle dock,
   Size limitSize
) 
public:
static Rectangle AlignRectToRect( 
   Rectangle rectTarget,
   Rectangle rectOrg,
   DockStyle dock,
   Size limitSize
) 

Parameters

rectTarget
Specifies the rectangle to place the control after tracking.
rectOrg
Specifies the current boundaries of the control.
dock
Specifies the position and manner in which a control is docked.
limitSize
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

GlobalUtils Class
GlobalUtils Members

Send Feedback