FormatCondition 對(duì)象

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

expandtri全部顯示

FormatConditions

parchildFormatCondition

FormatCondition 對(duì)象代表組合框文本框控件的條件格式,該對(duì)象是 FormatConditions 集合的一個(gè)成員。

使用 FormatCondition 對(duì)象

使用 FormatConditions(index) 可以返回一個(gè) FormatCondition 對(duì)象,其中 index 是條件格式的索引編號(hào)。

使用 Add 方法可以創(chuàng)建一個(gè)新的條件格式。可以用 Modify 方法更改某個(gè)格式,或者用 Delete 方法刪除某個(gè)格式。

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

可以使用 FormatCondition 對(duì)象的 BackColor、EnabledFontBold、FontItalic、FontUnderlineForeColor 屬性控制帶格式的組合框和文本框控件的外觀。