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

ToggleButton.Glow 属性 (访问)ToggleButton.Glow Property (Access)

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

获取或设置应用于指定对象的发光效果。读/写Gets or sets the Glow effect applied to the specified object. Read/write Long.

语法Syntax

表达式发光expression. Glow

表达式_一个表示一个切换按钮对象的变量。_expression A variable that represents a ToggleButton object.

注解Remarks

发光属性包含一个数值表达式,代表应用于指定对象的发光效果。发光属性的默认值是 0,不适用于发光效果。下表列出了值。The Glow property contains a numeric expression that represents the glow effect applied to the specified object. The default value of the Glow property is 0, which does not apply a glow effect. The values are listed in the following table.

ValueEffectEffect
00None
11蓝色,5 pt 发光,强调文字颜色 1Blue, 5 pt glow, Accent color 1
22红色,5 pt 发光,强调文字颜色 2Red, 5 pt glow, Accent color 2
33橄榄色,5 pt 发光,强调文字颜色 3Olive Green, 5 pt glow, Accent color 3
44紫色,5 pt 发光,强调文字颜色 4Purple, 5 pt glow, Accent color 4
55水绿色,5 pt 发光,强调文字颜色 5Aqua, 5 pt glow, Accent color 5
66橙色,5 pt 发光,强调文字颜色 6Orange, 5 pt glow, Accent color 6
77蓝色,8 pt 发光,强调文字颜色 1Blue, 8 pt glow, Accent color 1
88红色,8 pt 发光,强调文字颜色 2Red, 8 pt glow, Accent color 2
99橄榄色,8 pt 发光,强调文字颜色 3Olive Green, 8 pt glow, Accent color 3
1010紫色,8 pt 发光,强调文字颜色 4Purple, 8 pt glow, Accent color 4
1111水绿色,8 pt 发光,强调文字颜色 5Aqua, 8 pt glow, Accent color 5
1212橙色,8 pt 发光,强调文字颜色 6Orange, 8 pt glow, Accent color 6
1313蓝色,11 pt 发光,强调文字颜色 1Blue, 11 pt glow, Accent color 1
1414红色,11 pt 发光,强调文字颜色 2Red, 11 pt glow, Accent color 2
1515橄榄色,11 pt 发光,强调文字颜色 3Olive Green, 11 pt glow, Accent color 3
1616紫色,11 pt 发光,强调文字颜色 4Purple, 11 pt glow, Accent color 4
1717水绿色,11 pt 发光,强调文字颜色 5Aqua, 11 pt glow, Accent color 5
1818橙色,11 pt 发光,强调文字颜色 6Orange, 11 pt glow, Accent color 6
1919蓝色,18 pt 发光,强调文字颜色 1Blue, 18 pt glow, Accent color 1
2020红色,18 pt 发光,强调文字颜色 2Red, 18 pt glow, Accent color 2
2121橄榄色,18 pt 发光,强调文字颜色 3Olive Green, 18 pt glow, Accent color 3
2222紫色,18 pt 发光,强调文字颜色 4Purple, 18 pt glow, Accent color 4
2323水绿色,18 pt 发光,强调文字颜色 5Aqua, 18 pt glow, Accent color 5
2424橙色,18 pt 发光,强调文字颜色 6Orange, 18 pt glow, Accent color 6

若要查看可用的发光效果和应用的用户界面通过发光,首次打开窗体或报表在布局视图或设计视图中右键单击窗体或报表在导航窗格,然后单击所需的视图。然后,单击您想要将发光效果应用到的对象。接下来,在格式选项卡中的设置控件格式组中,单击形状效果,然后单击发光,选择一种发光效果。请注意发光效果进行索引从左到右,然后从上到下。因此下不发光的第一项都有值为 0。然后下发光,, 第一行中包含值为从 1 到 6 的发光的效果。从 7 到 12 的第二行,在 13 至 18,第三行和第四行从 19 到 24。To see the available glow effects and apply a glow through the user interface, first open the form or report in Layout view or Design view by right-clicking the form or report in the Navigation Pane, and then clicking the view you want. Then, click the object to which you want to apply a glow effect. Next, on the Format tab, in the Control Formatting group, click Shape Effects, then click Glow and choose a glow effect. Notice that the glow effects are indexed from left to right, and then top to bottom. So the first item, under No Glow, has the value 0. Then, under Glow, the first row contains glow effects with values from 1 to 6. The second row from 7 to 12, the third row from 13 to 18, and the fourth row from 19 to 24 .

此属性未出现在属性表中。This property is not surfaced in the property sheet.

示例Example

下面的代码示例将发光效果设置为“水绿色,11 pt 发光,强调文字颜色 5”。The following code example sets the glow effect to Aqua, 11 pt glow, Accent color 5.

Me.ctl.Glow = 17

另请参阅See also

概念Concepts

切换按钮对象ToggleButton Object

© 2018 Microsoft