Here is the code I am using:
IAutoShape shape = slide.Shapes.AppendShape(ShapeType.Rectangle, new RectangleF(pos, TLtop, TLqtrW, TLcellH));
shape.TextFrame.Text = "Q" + q.ToString();
shape.Fill.FillType = FillFormatType.Gradient;
shape.Fill.Gradient.GradientStyle = GradientStyle.FromCorner2;
shape.Fill.Gradient.LinearGradientFill.Angle = 90;
shape.Fill.Gradient.LinearGradientFill.IsScaled = TriState.True;
shape.Fill.Gradient.GradientStops.Append(0, Color.White);
shape.Fill.Gradient.GradientStops.Append(1, Color.LightGray);
TextRange tr = shape.TextFrame.TextRange;
tr.Paragraph.Alignment = TextAlignmentType.Center;
tr.Fill.SolidColor.ColorType = ColorType.RGB;
tr.Fill.SolidColor.Color = Color.Black;
tr.FontHeight = 12;
tr.Fill.FillType = FillFormatType.Solid;
tr.LatinFont = new TextFont("Calibre");
No matter what I set the angle to the gradient does not change the direction it is drawn. I need to rotate it so it starts at the top and ends at the bottom.
Thank you.