OptionButton.SpecialEffect 属性 (Access)OptionButton.SpecialEffect property (Access)

SpecialEffect属性可用于指定是否特殊格式将应用于指定的对象。You can use the SpecialEffect property to specify whether special formatting will apply to the specified object. Byte 型,可读写。Read/write Byte.

语法Syntax

expressionexpression. SpecialEffect

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

说明Remarks

SpecialEffect属性使用下列设置。The SpecialEffect property uses the following settings.

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

SpecialEffect属性设置会影响相关的BorderStyleBorderColorBorderWidth属性的属性设置。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. 此外,更改或设置 边框样式边框颜色边框宽度 属性可能会导致 Microsoft Access 变成平面的 特殊效果 属性设置。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

选项按钮对象OptionButton Object