Retrieves the size of a rectangular area into which a control can be fit.
public override Size GetPreferredSize(
Size
)
'Declaration
Public Overrides Function GetPreferredSize( _
ByVal As Size _
) As Size
'Usage
Dim instance As ImageListBox
Dim proposedSize As Size
Dim value As Size
value = instance.GetPreferredSize(proposedSize)
public: Size GetPreferredSize(
Size
) override
public:
Size GetPreferredSize(
Size
) override
Parameters
- proposedSize
- A System.Drawing.Size object that represents a proposed preferred size of the ImageListBox.
Return Value
A
System.Drawing.Size ordered pair, representing the width and height of a rectangle.