Trial Version Page X, Y

Trial Version Page X, Y

Forum member · Feb 14, 2008
In the trial version I notice that if I do this: Rectangle rect = new Rectangle(0, 0, width, height); rect.BorderWidth = 5; rect.BorderColor = RgbColor.Black; document.Pages[0].Elements.Add(rect); The rectangle is actually displayed starting at (50, 50) instead of (0,0). So if I instead do this: Rectangle rect = new Rectangle(-50, -50, width, height); Then the rectangle is now displayed at the top left of the screen. Is this the same in the release version? Is this just part of the trial version watermark process? -Mike

Re: Trial Version Page X, Y

Support · Feb 14, 2008
Hello Mike, You are seeing the rectangle at (50, 50) when using the (0, 0) as coordinates is because the page will have the default margin of 50 points. It will place the elements leaving this margins. If you do not want to have margins to your page then you can set the margins to "0" by setting the properties LeftMargin, TopMargin, RightMargin, BottomMargin of the PageDimensions. page.Dimensions.LeftMargin = 0; Thanks, ceTe Software Support Team.