GradientOrientation Property

The GradientOrientation property returns or sets the vertical or horizontal orientation of a gradient fill. Returns a grfOrientation value.

Syntax

object.GradientOrientation

object.GradientOrientation = GradientOrientation

 

Parameter Type Description
GradientOrientation Enum required, grfOrientation

 

Remarks

Not all objects with fill properties support the use of gradient orientation.

Example 1

This example demonstrates how to return the gradient orientation value.

Debug.Print FillFormat.GradientOrientation

Example 2

This example demonstrates how to set the gradient orientation.

FillFormat.GradientOrientation = grfHorizontal

 

Used by: AutoFill object, AutoHistogram Object