次の方法で共有


FillFormat.GradientAngle Property (Excel)

Returns or sets the angle of the gradient fill for the specified fill format. Read/write

Version Information

Version Added: Excel 2010

Syntax

expression .GradientAngle

expression A variable that represents a FillFormat object.

Return Value

Single

Remarks

A gradient fill can be specified in the formatting for various elements (shapes) in a chart. For example, you can use the Format Data Series dialog box to format the columns in a Column chart to a gradient fill. In this case, the GradientAngle property corresponds to the setting of the Angle box in the Fill category of the Format Data Series dialog box. The valid range of values for the GradientAngle property is from 0 to 359.9.

Example

The following code example sets the angle of the gradient fill for Series 1 in Chart 1 to 45 degrees.

ActiveSheet.ChartObjects("Chart 1").Activate 
ActiveChart.SeriesCollection(1).Format.Fill.GradientAngle = 45

See Also

Concepts

FillFormat Object

FillFormat Object Members