Table of contents
TOC
Collapse the table of content
Expand the table of content

TabControl.Gradient Property (Access)

office 365 dev account|Last Updated: 6/12/2017
|
1 Contributor

Gets or sets the gradient fill applied to the specified object. Read/write Long.

Syntax

expression. Gradient

expression A variable that represents a TabControl object.

Remarks

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.

ValueGradient Fill
0None
1Linear Diagonal - Top Left to Bottom Right, Light
2Linear Down, Light
3Linear Diagonal - Top Right to Bottom Left, Light
4From Bottom Right Corner, Light
5From Bottom Left Corner, Light
6Linear Left, Light
7Linear Center, Light
8Linear Right, Light
9From Top Right Corner, Light
10From Top Left Corner, Light
11Linear Diagonal - Bottom Left to Top Right, Light
12Linear Up, Light
13Linear Diagonal - Bottom Right to Top Left, Light
14Linear Diagonal - Top Left to Bottom Right, Dark
15Linear Down, Dark
16Linear Diagonal - Top Right to Bottom Left, Dark
17From Bottom Right Corner, Dark
18From Bottom Left Corner, Dark
19Linear Left, Dark
20Linear Center, Dark
21Linear Right, Dark
22From Top Right Corner, Dark
23From Top Left Corner, Dark
24Linear Diagonal - Bottom Left to Top Right, Dark
25Linear Up, Dark
26Linear 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

TabControl Object

© 2017 Microsoft