ComboBox.ForeShade 屬性 (Access)ComboBox.ForeShade property (Access)

取得或設定套用到指定物件 ForeColor 屬性之佈景主題色彩的陰影。Gets or sets the shade that is applied to the theme color in the ForeColor property of the specified object. 可讀寫的 SingleRead/write Single.



_運算式_代表**ComboBox** 物件的變數。expression A variable that represents a ComboBox object.


ForeShade屬性包含一個數值運算式,可用來加深Bordercolor屬性中的佈景主題色彩。The ForeShade property contains a numeric expression that can be used to darken the theme color in the ForeColor property. ForeShade 屬性的預設值為 100,也就是中性,不會變更的佈景主題色彩。The default value of the ForeShade property is 100, which is neutral, and does not change the theme color.

若要加深色彩,首先決定要加深介於 1 到 100,百分比再為整個數字介於 100 減去該值並使用其餘部分。To darken the color, first determine the percentage by which to darken from 1 to 100, and then subtract that value as a whole number from 100 and use the remainder. 例如,若要加深佈景主題色彩的 75%,減去 75 介於 100 並使用其餘部分,這是 25。For example, to darken the theme color by 75%, subtract 75 from 100 and use the remainder, which is 25.

此屬性不會呈現在屬性表中。This property is not surfaced in the property sheet.


下列程式碼範例會將 ForeColor 屬性深 75%。The following code example darkens the ForeColor property by 75%.


支援和意見反應Support and feedback

有關於 Office VBA 或這份文件的問題或意見反應嗎?Have questions or feedback about Office VBA or this documentation? 如需取得支援服務並提供意見反應的相關指導,請參閱 Office VBA 支援與意見反應Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.