IASLabel::put_Format

This method changes the text format of the label.

Syntax

HRESULT put_Format ( UINT wFormat );

Parameters

wFormat
[in] Unsigned 16-bit value that contains text formatting. It uses the same set of styles available with the Windows CE DrawText function, which include the following values:
ASFC_ALIGN_BOTTOM
When drawing text, align it with the bottom of the control.
ASFC_ALIGN_CENTER
When drawing text, center it.
ASFC_ALIGN_LEFT
When drawing text, align it to the left of the control.
ASFC_ALIGN_NOCLIP
Draw text without clipping it.
ASFC_ALIGN_RIGHT
When drawing text, align it to the right of the control.
ASFC_ALIGN_SINGLELINE
Draw text in a single line.
ASFC_ALIGN_TOP
When drawing text, align it with the top of the control.
ASFC_ALIGN_VCENTER
When drawing text, center it vertically.
ASFC_ALIGN_WORDBREAK
Draw text with word breaks.

Return Values

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

See Also

DrawText