PeachDrawing.PDF.IPdfFormAppearance

IPdfFormAppearance.PaintText(Canvas, Size, string, bool, Nullable<int>, bool) Method

Draws a text field (or a drop-down’s selected label): its border and background, then text. The text must be drawn between BeginVariableText() and EndVariableText(), so a reader that regenerates the field once it is edited replaces exactly that.

void PaintText(PeachDrawing.Core.Canvas canvas, PeachDrawing.Core.Size sizePoints, string text, bool autoFontSize, System.Nullable<int> combCells, bool isPlaceholder);

Parameters

canvas Canvas

the canvas to draw on

sizePoints Size

the field’s size, in points

text System.String

the text to draw

autoFontSize System.Boolean

whether the font is fitted to the field’s height

combCells System.Nullable<System.Int32>

the number of comb cells, or null for none

isPlaceholder System.Boolean

whether text is a placeholder hint