StringAlignment enumeration (gdiplusenums.h)

The StringAlignment enumeration specifies how a string is aligned in reference to the bounding rectangle. A bounding rectangle is used to define the area in which the text displays.

Syntax

typedef enum StringAlignment {
  StringAlignmentNear = 0,
  StringAlignmentCenter = 1,
  StringAlignmentFar = 2
} ;

Constants

 
StringAlignmentNear
Value: 0
Specifies that alignment is towards the origin of the bounding rectangle. May be used for alignment of characters along the line or for alignment of lines within the rectangle. For a right to left bounding rectangle (StringFormatFlagsDirectionRightToLeft), the origin is at the upper right.
StringAlignmentCenter
Value: 1
Specifies that alignment is centered between origin and extent (width) of the formatting rectangle.
StringAlignmentFar
Value: 2
Specifies that alignment is to the far extent (right side) of the formatting rectangle.

Requirements

   
Minimum supported client Windows XP, Windows 2000 Professional [desktop apps only]
Minimum supported server Windows 2000 Server [desktop apps only]
Header gdiplusenums.h (include Gdiplus.h)