[]
        
(Showing Draft Content)

GrapeCity.Documents.Pdf.GcGraphicsExt.DrawCheckBox

DrawCheckBox Method

DrawCheckBox(GcGraphics, RectangleF, bool, Font, float, Color, Color, Border, float, string)

Draws a PDF check mark.

Declaration
public static void DrawCheckBox(this GcGraphics g, RectangleF bounds, bool value, Font font, float fontSize, Color foreColor, Color backColor, Border border, float orientation, string checkMark = null)
Parameters
Type Name Description
GcGraphics g

The graphics to draw on.

RectangleF bounds

The check mark bounds.

bool value

The check mark value.

Font font

The font to use, can be null in which case ZapfDingbats will be used.

float fontSize

The font size, can be 0 in which case it will be selected automatically to fit into the specified bounds.

Color foreColor

The foreground color.

Color backColor

The background color.

Border border

The border definition.

float orientation

The rotation angle, should be a multiple of 90.

string checkMark

The text to use for the check mark.

DrawCheckBox(GcGraphics, RectangleF, bool, Font, float, Color, Color, Border, string)

Draws a PDF check mark.

Declaration
public static void DrawCheckBox(this GcGraphics g, RectangleF bounds, bool value, Font font, float fontSize, Color foreColor, Color backColor, Border border, string checkMark = null)
Parameters
Type Name Description
GcGraphics g

The graphics to draw on.

RectangleF bounds

The check mark bounds.

bool value

The check mark value.

Font font

The font to use, can be null in which case ZapfDingbats will be used.

float fontSize

The font size, can be 0 in which case it will be selected automatically to fit into the specified bounds.

Color foreColor

The foreground color.

Color backColor

The background color.

Border border

The border definition.

string checkMark

The text to use for the check mark.