title | keywords | f1_keywords | api_name | ms.assetid | ms.date | ms.localizationpriority | ||
---|---|---|---|---|---|---|---|---|
ListBox.ForeThemeColorIndex property (Access) |
vbaac10.chm14604 |
|
|
9338e883-4a8d-c2b9-e4ea-dc654dd86f40 |
03/01/2019 |
medium |
Gets or sets a value that represents a color in the applied color theme associated with the ForeColor property of the specified object. Read/write Long.
expression.ForeThemeColorIndex
expression A variable that represents a ListBox object.
The ForeThemeColorIndex property contains one of the index values listed in the following table.
Index Value | Description |
---|---|
0 | Text 1 |
1 | Background 1 |
2 | Text 2 |
3 | Background 2 |
4 | Accent 1 |
5 | Accent 2 |
6 | Accent 3 |
7 | Accent 4 |
8 | Accent 5 |
9 | Accent 6 |
10 | Hyperlink |
11 | Followed Hyperlink |
If no theme is applied, the ForeThemeColorIndex property contains -1.
This property is not surfaced in the property sheet.
The following code example sets the fore color to the Text 2 color by setting the ForeThemeColorIndex property.
Me.ctl.ForeThemeColorIndex=2
[!includeSupport and feedback]