BCGControlBar Library for .NET
AlignRectToRectInner 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.
Specifies if the target boundaries of control should not be changed according to the width of its current boundaries.
Called by the framework on tracking any control. Returns the rectangle to dock the control to the inner edge.
Syntax
'Declaration
 
Public Shared Function AlignRectToRectInner( _
   ByVal rectTarget As Rectangle, _
   ByVal rectOrg As Rectangle, _
   ByVal Dock As DockStyle, _
   ByVal bIgnoreWidth As Boolean _
) As Rectangle
'Usage
 
Dim rectTarget As Rectangle
Dim rectOrg As Rectangle
Dim Dock As DockStyle
Dim bIgnoreWidth As Boolean
Dim value As Rectangle
 
value = GlobalUtils.AlignRectToRectInner(rectTarget, rectOrg, Dock, bIgnoreWidth)
public static Rectangle AlignRectToRectInner( 
   Rectangle rectTarget,
   Rectangle rectOrg,
   DockStyle Dock,
   bool bIgnoreWidth
)
public: static Rectangle AlignRectToRectInner( 
   Rectangle rectTarget,
   Rectangle rectOrg,
   DockStyle Dock,
   bool bIgnoreWidth
) 
public:
static Rectangle AlignRectToRectInner( 
   Rectangle rectTarget,
   Rectangle rectOrg,
   DockStyle Dock,
   bool bIgnoreWidth
) 

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.
bIgnoreWidth
Specifies if the target boundaries of control should not be changed according to the width of its current 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

GlobalUtils Class
GlobalUtils Members

Send Feedback