SetBackgroundImage Method
Description
Sets an image to be used as the background of a group.
Syntax
Public Sub SetBackgroundImage( _
ByVal [ImageIndex](#) As Integer, _
ByVal [Alignment](#) As [XTPItemAlignment](XtremeSuiteControls~Enumerations~XTPItemAlignment_EN.md) _
)
Parameters
- ImageIndex: Index of an image in an ImageManager control.
- Alignment: Alignment of the image within the group.
Alignment Values
| Value | Description |
|---|---|
| DT_TOP | Aligns text to the top. |
| 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 vertical alignment. |
| DT_BOTTOM | Renders the text string at the bottom of the display rectangle. This value is used only with the vertical alignment. |
| 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. |
See Also
Copyright (c) 1998-2024 Codejock Technologies. All rights reserved.