BackShade 属性 (权限)Image.BackShade property (Access)

获取或设置应用于指定对象的 背景色 属性中的主题颜色的阴影。Gets or sets the shade applied to the theme color in the BackColor property of the specified object. 读/写 单个Read/write Single.



_表达式_一个代表**Image** 对象的变量。expression A variable that represents an Image object.


BackShade 属性包含一个数值表达式,可用于变暗的 背景色 属性中的主题颜色。The BackShade property contains a numeric expression that can be used to darken the theme color in the BackColor property. BackShade 属性的默认值为 100,它是中性的并不会更改的主题颜色。The default value of the BackShade 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%,请从 100 中减去 75,然后使用差值 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.


下面的代码示例使 75%变暗的 背景色 属性。The following code example darkens the BackColor 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.