[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.ILinearGradient.Degree

Degree Property

Degree

Gets or sets the angle of the linear gradient fill within a selection.

Use this property to get or set the direction of the ILinearGradient transition.

Declaration
double Degree { get; set; }
Property Degree As Double
Examples
IRange range = worksheet.Range["A1"];
range.Interior.Pattern = Pattern.LinearGradient;
ILinearGradient gradient = (ILinearGradient) range.Interior.Gradient;
gradient.Degree = 45;
double degree = gradient.Degree;