[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.Drawing.IFillFormat.GradientAngle

GradientAngle Property

GradientAngle

Gets or sets the angle of the gradient fill for the specified fill format.

Use this property to get or set the direction of a gradient that has been applied to the fill.

Declaration
double GradientAngle { get; set; }
Property GradientAngle As Double
Examples
IShape shape = worksheet.Shapes.AddShape(AutoShapeType.Rectangle, 20, 20, 100, 60);
IFillFormat fillFormat = shape.Fill;
fillFormat.TwoColorGradient(GradientStyle.Horizontal, 1);
fillFormat.GradientAngle = 45;
double angle = fillFormat.GradientAngle;