[]
Returns the shade variant for the specified fill as an integer value from 1 through 4.
The returned value corresponds to the gradient variant used by the current fill settings.
int GradientVariant { get; }
ReadOnly Property GradientVariant As Integer
IShape shape = worksheet.Shapes.AddShape(AutoShapeType.Rectangle, 20, 20, 100, 60);
IFillFormat fillFormat = shape.Fill;
fillFormat.TwoColorGradient(GradientStyle.Horizontal, 3);
int variant = fillFormat.GradientVariant;