图像边框属性(Outlook 窗体脚本)Image.BorderColor Property (Outlook Forms Script)

返回或设置一个 Long 类型的值,指定对象的边框颜色。Returns or sets a Long that specifies the border color of an object. 读/写。Read/write.

语法Syntax

表达式边框颜色expression.BorderColor

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

备注Remarks

您可以使用任何表示有效颜色的整数。You can use any integer that represents a valid color. 您还可以通过使用 Visual Basic RGB函数和红色、绿色和蓝色分量指定颜色。You can also specify a color by using the Visual Basic RGB function with red, green, and blue color components. The value of each color component is an integer that ranges from zero to 255.The value of each color component is an integer that ranges from zero to 255. 例如,可以将蓝绿色蓝色指定为整数值4966415,或者指定为红色、绿色和蓝色成分15、200、75,如下面的示例所示。For example, you can specify teal blue as the integer value 4966415 or as red, green, and blue color components 15, 200, 75, as shown in the following example.

RGB(15,200,75)

若要使用边框颜色属性, BorderStyle 属性必须设置为非0的值。To use the BorderColor property, the BorderStyle property must be set to a value other than 0.

BorderStyle 使用 BorderColor 定义边框色。BorderStyle uses BorderColor to define the border colors. SpecialEffect 属性专门使用系统颜色定义其边框色。The SpecialEffect property uses system colors exclusively to define its border colors. 对于 Windows 操作系统,系统颜色设置是使用控制面板中的 "显示" 图标设置的。For Windows operating systems, system color settings are set using the Display icon in Control Panel.

支持和反馈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.