VintaSoft Imaging .NET SDK 14.0: Documentation for .NET developer
Vintasoft.Imaging.Pdf.Tree.InteractiveForms.AppearanceGenerators Namespace / PdfCheckBoxFieldAppearanceGenerator Class / DrawBackgroundAndBorder(PdfAnnotationAppearanceStateType,PdfGraphics,RectangleF,PdfBrush,PdfPen) Method
Syntax Requirements SeeAlso
    DrawBackgroundAndBorder(PdfAnnotationAppearanceStateType,PdfGraphics,RectangleF,PdfBrush,PdfPen) Method (PdfCheckBoxFieldAppearanceGenerator)
    Draws a background and border.
    Syntax
    'Declaration
    
    Protected Overridable Sub DrawBackgroundAndBorder( _
    ByVal state
    The PDF annotation appearance state type.
    As Vintasoft.Imaging.Pdf.Tree.Annotations.PdfAnnotationAppearanceStateType, _
    ByVal g
    The graphics on which the checkbox must be drawn.
    As Vintasoft.Imaging.Pdf.Drawing.PdfGraphics, _
    ByVal rect
    The rectangle on Graphics, where background and border must be drawn.
    As System.Drawing.RectangleF, _
    ByVal brush
    The brush, which must be used for filling of checkbox background.
    As Vintasoft.Imaging.Pdf.Drawing.PdfBrush, _
    ByVal pen
    The pen, which must be used for drawing of checkbox border.
    As Vintasoft.Imaging.Pdf.Drawing.PdfPen _
    )
     

    Parameters

    state
    The PDF annotation appearance state type.
    g
    The graphics on which the checkbox must be drawn.
    rect
    The rectangle on Graphics, where background and border must be drawn.
    brush
    The brush, which must be used for filling of checkbox background.
    pen
    The pen, which must be used for drawing of checkbox border.
    Requirements

    Target Platforms: .NET9; .NET 8; .NET 7; .NET 6; .NET Framework 4.8, 4.7, 4.6, 4.5, 4.0, 3.5

    See Also