FormatConditions 集合

此頁沒有內(nèi)容條目
內(nèi)容

expandtri全部顯示

多個(gè)對(duì)象

parchildFormatConditions

spaceparchildFormatCondition

FormatConditions 集合代表組合框文本框控件的條件格式的集合。每個(gè)格式均由一個(gè) FormatCondition 對(duì)象來表示。

使用 FormatConditions 集合

在 Visual Basic 中或表達(dá)式中使用組合框或文本框的 FormatConditions 屬性,可以返回 FormatConditions 集合。若要新建一個(gè)條件格式,可使用 Add 方法;若要修改一個(gè)已有的條件格式,可使用 Modify 方法。

可以使用 Modify 方法更改某個(gè)格式,或者使用 Delete 方法刪除一個(gè)格式。

也可以在“條件格式”對(duì)話框中設(shè)置組合框或文本框的條件格式。當(dāng)某個(gè)窗體處于“設(shè)計(jì)”視圖時(shí),單擊“格式”菜單上的“條件格式”,即可打開“條件格式”對(duì)話框。