IASControl::get_NaturalSize

This method gets the natural size of a control.

Syntax

HRESULT get_NaturalSize( long *plWidth, long *plHeight);

Parameters

plWidth
Pointer to a long integer that contains the natural width of a control.
plHeight
Pointer to a long integer that contain the natural height of a control.

Return Values

NOERROR indicates success. If an error occurs, the appropriate HRESULT value is returned.

Remarks

The natural size of a control typically consists of the dimensions a control would need to display its contents. For example, the natural size of a label control with a ASFC_ALIGN_SINGLELINE format is the width required to display the control’s full caption.