BorderColor 属性
Specifies the color of an object's border.
语法
对象。BorderColor [= Long ]
“BorderColor”属性语法具有以下部件:
Part | 说明 |
---|---|
object | 必填。 一个有效的对象。 |
Long | 可选。 确定对象的边框颜色的值或常数。 |
设置
使用表示有效颜色的任何整数。 You can also specify a color by using the RGB function with red, green, and blue color components. The value of each color component is an integer that ranges from zero to 255. For example, you can specify teal blue as the integer value 4966415 or as RGB color component values 15, 200, 75.
备注
若要使用“BorderColor”属性,则必须将“BorderStyle”属性设置为不是“fmBorderStyleNone”的值。
“BorderStyle”使用了“BorderColor”来定义边框颜色。 “SpecialEffect”属性独占使用了系统颜色来定义其边框颜色。 对于 Windows 操作系统而言,系统颜色设置是“控制面板”的一部分,可以在“显示”文件夹的“外观”选项卡上找到。 In Windows NT 4.0 or later, system color settings are stored in the Color folder of the Control Panel.
另请参阅
支持和反馈
有关于 Office VBA 或本文档的疑问或反馈? 请参阅 Office VBA 支持和反馈,获取有关如何接收支持和提供反馈的指南。
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈