I need posisioning vertical text exactly in a XPoint.
I try using a rectangle, from "top + height" to "top".
Still can't do it...
Code:
XGraphicsState gs = gfx.Save();
XGraphicsPath path = new XGraphicsPath();
gfx.TranslateTransform(45.0 , 10.0 + rect.Height / 3.0);
gfx.RotateTransform(-90);
gfx.TranslateTransform(-45.0 , -10.0 - rect.Height / 3.0);
rect.Width = rect.Height;
rect.Height = 20;
XTextFormatter tf = new XTextFormatter(gfx);
tf.Alignment = XParagraphAlignment.Center;
gfx.DrawPath(new XPen(pen.Color, 0.5), brush, path);
XRect rectVerticalText = new XRect(-rect.Top,rect.Left, rect.Width, rect.Height);
gfx.DrawRectangle(brushBlack,rectVerticalText);
tf.DrawString(ndName, font, brushFont, rectVerticalText, XStringFormat.TopLeft);
gfx.Restore(gs);
Regards, José.[/code]