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

NavigationButton.Gradient 属性 (访问)NavigationButton.Gradient Property (Access)

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

获取或设置应用于指定对象的渐变填充。读/写Gets or sets the gradient fill applied to the specified object. Read/write Long.

语法Syntax

表达式渐变expression. Gradient

表达式_一个表示NavigationButton对象的变量。_expression A variable that represents a NavigationButton object.

注解Remarks

渐变属性包含一个数值表达式,代表应用于指定对象的渐变填充。渐变属性的默认值为 0,而不会应用渐变。下表列出了值。The Gradient property contains a numeric expression that represents the gradient fill applied to the specified object. The default value of the Gradient property is 0, which does not apply a gradient. The values are listed in the following table.

Value渐变填充Gradient Fill
00None
11线性对角 - 左上到右下,浅色Linear Diagonal - Top Left to Bottom Right, Light
22线性向下,浅色Linear Down, Light
33线性对角 - 右上到左下,浅色Linear Diagonal - Top Right to Bottom Left, Light
44从右下角,浅色From Bottom Right Corner, Light
55从左下角,浅色From Bottom Left Corner, Light
66线性向左,浅色Linear Left, Light
77线性居中,浅色Linear Center, Light
88线性向右,浅色Linear Right, Light
99从右上角,浅色From Top Right Corner, Light
1010从左上角,浅色From Top Left Corner, Light
1111线性对角 - 左下到右上,浅色Linear Diagonal - Bottom Left to Top Right, Light
1212线性向上,浅色Linear Up, Light
1313线性对角 - 右下到左上,浅色Linear Diagonal - Bottom Right to Top Left, Light
1414线性对角 - 左上到右下,深色Linear Diagonal - Top Left to Bottom Right, Dark
1515线性向下,深色Linear Down, Dark
1616线性对角 - 右上到左下,深色Linear Diagonal - Top Right to Bottom Left, Dark
1717从右下角,深色From Bottom Right Corner, Dark
1818从左下角,深色From Bottom Left Corner, Dark
1919线性向左,深色Linear Left, Dark
2020线性居中,深色Linear Center, Dark
2121线性向右,深色Linear Right, Dark
2222从右上角,深色From Top Right Corner, Dark
2323从左上角,深色From Top Left Corner, Dark
2424线性对角 - 左下到右上,深色Linear Diagonal - Bottom Left to Top Right, Dark
2525线性向上,深色Linear Up, Dark
2626线性对角 - 右下到左上,浅色Linear Diagonal - Bottom Right to Top Left, Light

要查看可用的渐变填充并应用渐变通过用户界面,第一次打开窗体或报表在布局视图或设计视图中右键单击窗体或报表在导航窗格,然后单击所需的视图。然后,单击您要应用渐变填充的对象。接下来,在格式选项卡中的设置控件格式组中,单击形状填充,然后单击渐变,选择渐变填充。您可以悬停在渐变填充若要查看说明。To see the available gradient fills and apply a gradient 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 gradient fill. Next, on the Format tab, in the Control Formatting group, click Shape Fill, then click Gradient and choose a gradient fill. You can hover over a gradient fill to see a description.

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

示例Example

下面的代码示例将渐变填充设置为“线性向下,浅色”。The following code example sets the gradient fill to Linear Down, Light.

Me.ctl.Gradient = 2

另请参阅See also

概念Concepts

NavigationButton 对象NavigationButton Object

© 2018 Microsoft