Table of contents
TOC
折叠目录
展开目录

OptionButton.SpecialEffect 属性 (访问)OptionButton.SpecialEffect Property (Access)

office 365 dev account|上次更新日期: 2018/3/13
|
2 参与人员

特殊效果属性用于指定是否特殊的格式设置将应用于指定的对象。读取/写入字节You can use the SpecialEffect property to specify whether special formatting will apply to the specified object. Read/write Byte.

语法Syntax

表达式特殊效果expression. SpecialEffect

表达式_一个表示一个选项按钮对象的变量。_expression A variable that represents an OptionButton object.

注解Remarks

特殊效果属性使用以下设置。The SpecialEffect property uses the following settings.

设置SettingVisual BasicVisual Basic说明Description
平面Flat00对象显示为平面,而且以系统默认颜色或“设计”视图中设置的自定义颜色来显示。The object appears flat and has the system's default colors or custom colors that were set in Design view.
凸起Raised11对象显示为左上凸起、右下阴影。The object has a highlight on the top and left and a shadow on the bottom and right.
凹陷Sunken22对象显示为左上阴影、右下凸起。The object has a shadow on the top and left and a highlight on the bottom and right.
蚀刻Etched33对象在控件四周有下陷的线条。The object has a sunken line surrounding the control.
阴影Shadowed44对象在控件的右下方显示阴影。The object has a shadow below and to the right of the control.
凿痕Chiseled55对象在控件下方有下陷线条。The object has a sunken line below the control.

特殊效果属性设置将影响相关的边框样式边框颜色边框宽度属性的属性设置。例如,如果特殊效果属性设置为凸起,边框边框颜色边框宽度属性的设置将被忽略。此外,更改或设置边框样式边框颜色边框宽度属性可能会导致 Microsoft Access 变成平面的特殊效果属性设置。The SpecialEffect property setting affects related property settings for the BorderStyle, BorderColor, and BorderWidth properties. For example, if the SpecialEffect property is set to Raised, the settings for the BorderStyle, BorderColor, and BorderWidth properties are ignored. In addition, changing or setting the BorderStyle, BorderColor, and BorderWidth properties may cause Microsoft Access to change the SpecialEffect property setting to Flat.

示例Example

下面的示例将“Mailing List”(邮件列表)窗体上的文本框“OrganizationName1”(组织名称 1)的外观设置为凸起。The following example sets the appearance of the text box "OrganizationName1" on the "Mailing List" form to raised.

Forms("Mailing List").Controls("OrganizationName1").SpecialEffect = 1

另请参阅See also

概念Concepts

OptionButton 对象OptionButton Object

© 2018 Microsoft