Table of contents
TOC
Collapse the table of content
Expand the table of content

ListBox.BackThemeColorIndex Property (Access)

office 365 dev account|Last Updated: 6/12/2017
|
1 Contributor

Gets or sets a value that represents a color in the applied color theme associated with the BackColor property of the specified object. Read/write Long.

Syntax

expression. BackThemeColorIndex

expression A variable that represents a ListBox object.

Remarks

The BackThemeColorIndex property contains one of the index values listed in the following table.

Index ValueDescription
0Text 1
1Background 1
2Text 2
3Background 2
4Accent 1
5Accent 2
6Accent 3
7Accent 4
8Accent 5
9Accent 6
10Hyperlink
11Followed Hyperlink

If no theme is applied, the BackThemeColorIndex property contains -1.

This property is not surfaced in the property sheet.

Example

The following code example sets the Background Color to the Text 2 color by setting the BackThemeColorIndex property.

Me.FormHeader.BackThemeColorIndex=2

See also

Concepts

ListBox Object

© 2017 Microsoft