public MoveTextPos ( float x, float y ) : void | ||
x | float | |
y | float | |
Résultat | void |
private static void ShowDescription(HPdfPage page, float x, float y, string text) { string buf; page.MoveTo(x, y - 10); page.LineTo(x, y + 10); page.MoveTo(x - 10, y); page.LineTo(x + 10, y); page.Stroke(); page.SetFontAndSize(page.GetCurrentFont(), 8); page.SetRGBFill(0, 0, 0); page.BeginText(); buf = "(x=" + x + ",y=" + y + ")"; page.MoveTextPos(x - page.TextWidth(buf) - 5, y - 10); page.ShowText(buf); page.EndText(); page.BeginText(); page.MoveTextPos(x - 20, y - 25); page.ShowText(text); page.EndText(); }
private static void PrintPage(HPdfPage page, int page_num) { page.SetWidth(800); page.SetHeight(800); page.BeginText(); page.MoveTextPos(30, 740); string buf = "Page:" + page_num; page.ShowText(buf); page.EndText(); }
private static void DrawRect(HPdfPage page, float x, float y, string label) { page.BeginText(); page.MoveTextPos(x, y - 10); page.ShowText(label); page.EndText(); page.Rectangle(x, y - 40, 220, 25); }
private static void DrawLine2(HPdfPage page, float x, float y, string label) { page.BeginText(); page.MoveTextPos(x, y); page.ShowText(label); page.EndText(); page.MoveTo(x + 30, y - 25); page.LineTo(x + 160, y - 25); page.Stroke(); }