SetTextAlignment


static unsigned SetTextAlignment(Handle Device,
                                 unsigned Alignment)

This function sets the alignment of text.

Parameters

Handle Device

The handle of the device context.

unsigned Alignment

A selection of flags from the enumeration TextAlignment.

Return

unsigned

The previous alignment flags.

Notes

The functions:

use the setting of the text alignment to define the relationship of the reference point to the bounding rectangle of the text. The bounding rectangle is formed as the union of the individual character boxes. The bounding rectangle may be queried via a call to the function GetTextExtent.

The text reference point:

Details

Name Space IPlusPlus::Graphics
Class Gdi
Assembly IPlusPlus.WinPlus.dll