Skip to content

XTPItemAlignment Enumeration

Description

Specifies the text formatting for text in the Popup Control and for items in the TaskPanel Control.

Members

Member Description
DT_TOP Aligns text to the top of the display rectangle.
DT_LEFT Aligns text to the left.
DT_CENTER Centers text horizontally.
DT_RIGHT Aligns text to the right.
DT_VCENTER Centers text vertically. This value is used only with the DT_SINGLELINE and DT_WORDBREAK values.
DT_BOTTOM Renders the text string at the bottom of the display rectangle. This value is used only with the DT_SINGLELINE.
DT_SINGLELINE Displays text on a single line. Carriage returns and line feeds do not break the line.
DT_WORDBREAK Breaks lines between words if a word would extend past the edge of the display rectangle ("wraps" the text). A carriage return/line feed (CR/LF) sequence also breaks the line.
DT_END_ELLIPSIS Specifies that lines of text will not "word wrap" to the next line; they will stay on a single line truncating any text that cannot fit. Truncates the text string that is wider than the popup control item and adds an ellipsis to indicate the truncation.

Copyright (c) 1998-2024 Codejock Technologies. All rights reserved.