IASLabel::put_CaptionAlign

This method sets the caption alignment.

Syntax

HRESULT put_CaptionAlign( short wAlign );

Parameters

wAlign
[in] Unsigned 16-bit value that contains alignment information. It is one of the following values:
ASFC_CAPTION_ALIGNNONE
Caption extends from the top of the control to the bottom.
ASFC_CAPTION_ALIGNTOP
Caption aligns with the top of the image.
ASFC_CAPTION_ALIGNBOTTOM
Caption aligns with the bottom of the image.

Return Values

NOERROR indicates success. E_INVALIDARG indicates that the argument is invalid.