Table of contents
TOC
折叠目录
展开目录

ComboBox.BackThemeColorIndex 属性 (访问)ComboBox.BackThemeColorIndex Property (Access)

office 365 dev account|上次更新日期: 2018/3/13
|
2 参与人员

获取或设置一个值,该值代表与指定对象的背景色属性相关联的应用的颜色主题中的颜色。读/写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

表达式BackThemeColorIndexexpression. BackThemeColorIndex

表达式_表示组合框对象变量。_expression A variable that represents a ComboBox object.

注解Remarks

BackThemeColorIndex属性包含下表中列出的索引值之一。The BackThemeColorIndex property contains one of the index values listed in the following table.

索引值Index Value说明Description
00文字 1Text 1
11背景 1Background 1
22文字 2Text 2
33背景 2Background 2
44强调文字颜色 1Accent 1
55强调文字颜色 2Accent 2
66强调文字颜色 3Accent 3
77强调文字颜色 4Accent 4
88强调文字颜色 5Accent 5
99强调文字颜色 6Accent 6
1010超链接Hyperlink
1111已访问的超链接Followed Hyperlink

如果应用了无主题,则BackThemeColorIndex属性包含-1。If no theme is applied, the BackThemeColorIndex property contains -1.

此属性未出现在属性表中。This property is not surfaced in the property sheet.

示例Example

下面的代码示例通过将BackThemeColorIndex属性设置为 2 的文本颜色设置的背景色。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

组合框对象ComboBox Object

© 2018 Microsoft