BCGControlBar Library for .NET
GetCaptionRect Method (GlobalUtils)




The form to get caption size and location.
Specifies the size of the border of the form.
Gets the size and location of the caption area  for the specified form according to its border style and its window state.
Syntax
'Declaration
 
Public Shared Function GetCaptionRect( _
   ByVal form As Form, _
   ByRef szBorder As Size, _
   ByVal isRibbonPresent As Boolean _
) As Rectangle
'Usage
 
Dim form As Form
Dim szBorder As Size
Dim isRibbonPresent As Boolean
Dim value As Rectangle
 
value = GlobalUtils.GetCaptionRect(form, szBorder, isRibbonPresent)
public static Rectangle GetCaptionRect( 
   Form form,
   ref Size szBorder,
   bool isRibbonPresent
)
public: static Rectangle GetCaptionRect( 
   Form* form,
   ref Size szBorder,
   bool isRibbonPresent
) 
public:
static Rectangle GetCaptionRect( 
   Form^ form,
   Size% szBorder,
   bool isRibbonPresent
) 

Parameters

form
The form to get caption size and location.
szBorder
Specifies the size of the border of the form.
isRibbonPresent
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