PDFsharp-net6

PdfCheckBoxFieldRenderer

Namespace: PdfSharp.Pdf.AcroForms.Rendering

Renders a PdfCheckBoxField

public class PdfCheckBoxFieldRenderer

Inheritance ObjectPdfCheckBoxFieldRenderer

Remarks:

Inheritors should override the methods PdfCheckBoxFieldRenderer.RenderCheckedState(PdfCheckBoxField, PdfWidgetAnnotation, XGraphics, XRect) and PdfCheckBoxFieldRenderer.RenderUncheckedState(PdfCheckBoxField, PdfWidgetAnnotation, XGraphics, XRect)

Constructors

PdfCheckBoxFieldRenderer()

public PdfCheckBoxFieldRenderer()

Methods

RenderCheckedState(PdfCheckBoxField, PdfWidgetAnnotation, XGraphics, XRect)

Renders the ckecked state of the PdfCheckBoxField

public void RenderCheckedState(PdfCheckBoxField field, PdfWidgetAnnotation widget, XGraphics gfx, XRect rect)

Parameters

field PdfCheckBoxField
The field being rendered

widget PdfWidgetAnnotation
The PdfWidgetAnnotation of the field that is being rendered

gfx XGraphics
The XGraphics used to perform drawing operations

rect XRect
The XRect spcifying the position and dimensions of the field

RenderUncheckedState(PdfCheckBoxField, PdfWidgetAnnotation, XGraphics, XRect)

Renders the unckecked state of the PdfCheckBoxField

public void RenderUncheckedState(PdfCheckBoxField field, PdfWidgetAnnotation widget, XGraphics gfx, XRect rect)

Parameters

field PdfCheckBoxField
The field being rendered

widget PdfWidgetAnnotation
The PdfWidgetAnnotation of the field that is being rendered

gfx XGraphics
The XGraphics used to perform drawing operations

rect XRect
The XRect spcifying the position and dimensions of the field