public override bool DrawTextInRect(ref string text, ref int xRelStart, ref int yRelStart, int x, int y, int width, int height, uint dtFlags, Color color, Font font) { var r = new Sd.RectangleF(x, y, width, height); Context.DrawString(text, ((Win32Font) font).NativeFont, new Sd.SolidBrush(color.ToWin32()), r); return false; }
public override void DrawText(string text, Font font, Color color, int x, int y) { Context.DrawString(text, ((Win32Font) font).NativeFont, new Sd.SolidBrush(color.ToWin32()), x, y); }