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

返回或设置一个 Integer 类型的值,指定控件的边框类型。Returns or sets an Integer that specifies the type of border of the control. 读/写。Read/write.

语法Syntax

表达式边框样式expression.BorderStyle

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

备注Remarks

BorderStyle的可能值为0和1。The possible values of BorderStyle are 0 and 1. 0 表示无可见边框线,1 表示单线边框(默认)。0 represents no visible border line, 1 represents a single-line border (default).

Image 的默认值为 1(单线)。The default value for an Image is 1 (Single).

您可以使用BorderStyle或**SpecialEffect** 来指定控件的边框,但不能同时使用这两种方法。You can use either BorderStyle or SpecialEffect to specify the border for a control, but not both. 如果为其中一个属性指定非 0 值,系统会将另一个属性的值设置为 0。If you specify a nonzero value for one of these properties, the system sets the value of the other property to zero. 例如,如果将 BorderStyle 设置为 1,系统会将 SpecialEffect 设置为 0(扁平)。For example, if you set BorderStyle to 1, the system sets SpecialEffect to zero (Flat). 如果您为SpecialEffect指定非零值,系统会将BorderStyle设置为零。If you specify a nonzero value for SpecialEffect, the system sets BorderStyle to zero.

BorderStyle 使用 BorderColor 来定义其边框的颜色。BorderStyle uses BorderColor to define the colors of its borders. 若要使用 BorderColor 属性, BorderStyle 属性必须设置为非 0 的值。To use the BorderColor property, the BorderStyle property must be set to a value other than 0.

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