PDFsharp-net6

PdfRadioButtonFieldRenderer

Namespace: PdfSharp.Pdf.AcroForms.Rendering

Renders a PdfRadioButtonField

public class PdfRadioButtonFieldRenderer

Inheritance ObjectPdfRadioButtonFieldRenderer

Remarks:

Inheritors should override the methods PdfRadioButtonFieldRenderer.RenderCheckedState(PdfRadioButtonField, PdfWidgetAnnotation, XGraphics, XRect) and PdfRadioButtonFieldRenderer.RenderUncheckedState(PdfRadioButtonField, PdfWidgetAnnotation, XGraphics, XRect)

Constructors

PdfRadioButtonFieldRenderer()

public PdfRadioButtonFieldRenderer()

Methods

RenderCheckedState(PdfRadioButtonField, PdfWidgetAnnotation, XGraphics, XRect)

Renders the ckecked state of the PdfRadioButtonField

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

Parameters

field PdfRadioButtonField
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(PdfRadioButtonField, PdfWidgetAnnotation, XGraphics, XRect)

Renders the unckecked state of the PdfRadioButtonField

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

Parameters

field PdfRadioButtonField
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