ComboBox.FormatConditions 属性 (Access)

使用 FormatConditions 属性可返回对 FormatConditions 集合及其相关属性的只读引用。

语法

表达式FormatConditions

表达 一个代表 ComboBox 对象的变量。

示例

以下示例设置 Textbox1 控件的现有条件格式的格式属性。

With Forms("forms1").Controls("Textbox1").FormatConditions(1) 
 .BackColor = RGB(255,255,255) 
 .FontBold = True 
 .ForeColor = RGB(255,0,0) 
End With

支持和反馈

有关于 Office VBA 或本文档的疑问或反馈? 请参阅 Office VBA 支持和反馈,获取有关如何接收支持和提供反馈的指南。