We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Set textFrame Y value not working in release mode


I am having problem of setting Y value of a textframe, it works well in debug mode but once the breakpoint is removed or the project is in release mode, it just doesn't work, Y of the text frame stays whatever it was originally.

Attached the code and the screenshot of the results. Please help!



I have worked around it by adding the following piece of code under txtFrame2.Y = 300 and it worked, but still confused why I need to do this.

//Setting the font height to 55

port.FontHeight = 14;

port2.FontHeight = 7;

txtFrame2.X = 100;

txtFrame2.Y = 300;

if (txtFrame2.Y != 300)

txtFrame2.Y = 300;


Is it occurring in latest version i.e Aspose.Slides for .NET?