IASPowerListBox::put_Alignment

This method sets how items are aligned.

Syntax

HRESULT put_Alignment ( short wAlign );

Parameters

pwAlign
Pointer to an unsigned 16-bit character that contains one of the following alignment flags:
ASFC_ALIGN_BOTTOM
Aligns text with the bottom of the control.
ASFC_ALIGN_CENTER
Centers text.
ASFC_ALIGN_LEFT
Aligns text to the left of the control.
ASFC_ALIGN_RIGHT
Aligns text to the right of the control.
ASFC_ALIGN_SINGLELINE
Draws text in a single line.
ASFC_ALIGN_TOP
Aligns text with the top of the control.
ASFC_ALIGN_VCENTER
Centers text vertically.
ASFC_ALIGN_WORDBREAK
Draws text with word breaks.

Return Values

NOERROR indicates success. E_OUTOFMEMORY indicates that the system is out of memory.