Version

EnforceMinMax(Size,Boolean,Boolean) Method

Invoked to adjust a size to enforce the minimum and maximum sizes of a pane
Syntax
'Declaration
 
Protected Overloads Function EnforceMinMax( _
   ByVal requestedSize As Size, _
   ByVal width As Boolean, _
   ByVal height As Boolean _
) As Size
protected Size EnforceMinMax( 
   Size requestedSize,
   bool width,
   bool height
)

Parameters

requestedSize
Size to process
width
True if the width should be enforced
height
True if the height should be enforced

Return Value

The updated size
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, 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