Problem with fill color / vertical font alignment


Hello, I am using the evaluation version of Aspose.PowerPoint to see if it meets our needs for a project; I am attempting to add a text frame to a slide using:

Presentation pres = slide.Parent;

int width = slide.Background.Width;

int height = slide.Background.Height;

Aspose.PowerPoint.Rectangle rect = slide.Shapes.AddRectangle(0, 0, width, height);

FillFormat fill = rect.FillFormat;

fill.Type = FillType.Solid;

fill.BackColor = Color.FromArgb(255, 255, 255);


TextFrame frame = rect.TextFrame;

frame.WrapText = true;

Paragraph textparagraph = frame.Paragraphs[0];

textparagraph.Alignment = TextAlignment.Left;

Portion textportion = frame.Paragraphs[0].Portions[0];

pres.Fonts[textportion.FontIndex].FontName = "Arial";

textportion.FontHeight = Convert.ToInt16(22);

However, the frame ends up being green and the text is vertically centered. Is this a bug, a limitation of the evaluation version, or what? I am opening the resulting presentation with PowerPoint 2000.

fill.Type = FillType.Solid;
fill.ForeColor = Color.FromArgb(255, 255, 255);

Center text vertically
frame.AnchorText = AnchorText.Middle;

Pleace text at the top of frame
frame.AnchorText = AnchorText.Top;


Thank you for your help.