PeachDrawing.PDF.PdfCanvas
PdfCanvas.DrawStringInRect(string, Font, PaintColor, Rect, BoxAlignment, BoxAlignment, string) Method
Aligns the line inside rect with the PDF writer’s own rect-and-format text layout, which positions by the typeface’s cell ascent and descent (rather than the default’s Height arithmetic), so a margin box’s text lands where it always has.
public override void DrawStringInRect(string str, PeachDrawing.Core.Font font, PeachDrawing.Core.PaintColor color, PeachDrawing.Core.Rect rect, PeachDrawing.Core.BoxAlignment horizontal, PeachDrawing.Core.BoxAlignment vertical, string? logicalText=null);
Parameters
str System.String
font Font
color PaintColor
rect Rect
horizontal BoxAlignment
vertical BoxAlignment
logicalText System.String