DWRITE_TEXT_ALIGNMENT enumeration (dwrite.h)

Specifies the alignment of paragraph text along the reading direction axis, relative to the leading and trailing edge of the layout box.

Syntax

typedef enum DWRITE_TEXT_ALIGNMENT {
  DWRITE_TEXT_ALIGNMENT_LEADING,
  DWRITE_TEXT_ALIGNMENT_TRAILING,
  DWRITE_TEXT_ALIGNMENT_CENTER,
  DWRITE_TEXT_ALIGNMENT_JUSTIFIED
} ;

Constants

 
DWRITE_TEXT_ALIGNMENT_LEADING
The leading edge of the paragraph text is aligned to the leading edge of the layout box.
DWRITE_TEXT_ALIGNMENT_TRAILING
The trailing edge of the paragraph text is aligned to the trailing edge of the layout box.
DWRITE_TEXT_ALIGNMENT_CENTER
The center of the paragraph text is aligned to the center of the layout box.
DWRITE_TEXT_ALIGNMENT_JUSTIFIED
Align text to the leading side, and also justify text to fill the lines.

Requirements

Requirement Value
Minimum supported client Windows 7, Windows Vista with SP2 and Platform Update for Windows Vista [desktop apps | UWP apps]
Minimum supported server Windows Server 2008 R2, Windows Server 2008 with SP2 and Platform Update for Windows Server 2008 [desktop apps | UWP apps]
Header dwrite.h