GetPreferredSize Method

Summary

Retrieves the size of a rectangular area into which a control can be fit.

Syntax
C#
VB
C++
public override Size GetPreferredSize( 
   Size constrainingSize 
) 
  
Public Overrides Function GetPreferredSize( _ 
   ByVal constrainingSize As Size _ 
) As Size 
public: 
Size GetPreferredSize(  
   Size constrainingSize 
) override  

Parameters

constrainingSize
The custom-sized area for a control.

Return Value

A Size ordered pair, representing the width and height of a rectangle.

Requirements

Target Platforms

Help Version 20.0.2020.3.31
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2020 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Medical.Workstation Assembly