BCGControlBar Library for .NET
ExcludeNCArea Method




The initial value, from which the non-client area will be excluded (or included).
Indicates, if the excluding has a horizontal or  vertical direction.
Indicates, if the non-client area will be added to or substract from the specified value .
Returns a value, which is a difference (or a sum) between value and the width (or height) of non-client area. In default implementation the non-client area includes the size of the border, gripper and caption.
Syntax
'Declaration
 
Public Overridable Function ExcludeNCArea( _
   ByVal value As Integer, _
   ByVal horz As Boolean, _
   ByVal exclude As Boolean _
) As Integer
'Usage
 
Dim instance As CommandBar
Dim value As Integer
Dim horz As Boolean
Dim exclude As Boolean
Dim value As Integer
 
value = instance.ExcludeNCArea(value, horz, exclude)
public virtual int ExcludeNCArea( 
   int value,
   bool horz,
   bool exclude
)
public: virtual int ExcludeNCArea( 
   int value,
   bool horz,
   bool exclude
) 
public:
virtual int ExcludeNCArea( 
   int value,
   bool horz,
   bool exclude
) 

Parameters

value
The initial value, from which the non-client area will be excluded (or included).
horz
Indicates, if the excluding has a horizontal or  vertical direction.
exclude
Indicates, if the non-client area will be added to or substract from the specified value .
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