Skip to content

SetItemTextFormat Method

Description

The SetItemTextFormat method specifies how the text for items in the TaskPanel will be displayed.

Syntax

Public Sub SetItemTextFormat( _
    ByVal Format As [XTPItemAlignment](XtremeSuiteControls~Enumerations~XTPItemAlignment_EN.md) _
)

Parameters

  • Format: A parameter of type XTPItemAlignment that contains one or more values that specify the string's formatting.

Alignment Values

Value 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 value.
DT_BOTTOM Renders the text string at the bottom of the display rectangle. This value is used only with the DT_SINGLELINE value.
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_SINGLELINE 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.
DT_END_ELLIPSIS Truncates the text string that is wider than the popup control item and adds an ellipsis to indicate the truncation.

Remarks

One or more of these values are used to specify how a text string should be formatted.

See Also


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