Table of Contents

Class CheckBox

Namespace
PDFjet.NET
Assembly
PDFjet.dll

Creates a CheckBox, which can be set checked or unchecked. By default the check box is unchecked. Portions provided by Shirley C. Christenson Shirley Christenson Consulting

public class CheckBox : IDrawable
Inheritance
CheckBox
Implements
Inherited Members

Constructors

CheckBox(Font, string)

Creates a CheckBox with black check mark.

public CheckBox(Font font, string label)

Parameters

font Font
label string

Methods

Check(int)

Checks or unchecks this check box. See the Mark class for available options.

public CheckBox Check(int mark)

Parameters

mark int

Returns

CheckBox

this CheckBox.

DrawOn(Page)

Draws this CheckBox on the specified Page.

public float[] DrawOn(Page page)

Parameters

page Page

the page to draw on.

Returns

float[]

x and y coordinates of the bottom right corner of this component.

DrawXMark(Page, float, float, float)

Draws a blue X mark of the specified size at the specified location.

public static void DrawXMark(Page page, float x, float y, float size)

Parameters

page Page
x float
y float
size float

GetHeight()

Gets the height of the CheckBox.

public float GetHeight()

Returns

float

GetWidth()

Gets the width of the CheckBox.

public float GetWidth()

Returns

float

SetActualText(string)

Sets the actual text for this check box.

public CheckBox SetActualText(string actualText)

Parameters

actualText string

the actual text for the check box.

Returns

CheckBox

this CheckBox.

SetAltDescription(string)

Sets the alternate description of this check box.

public CheckBox SetAltDescription(string altDescription)

Parameters

altDescription string

the alternate description of the check box.

Returns

CheckBox

this CheckBox.

SetBorderColor(int)

Sets the color of the check box. Color.transparent leaves it unchanged.

public CheckBox SetBorderColor(int borderColor)

Parameters

borderColor int

the border color specified as an 0xRRGGBB integer.

Returns

CheckBox

this CheckBox.

SetBorderColor(float[])

Sets the color of the check box.

public CheckBox SetBorderColor(float[] rgbColor)

Parameters

rgbColor float[]

the color as red, green and blue components from 0.0 to 1.0.

Returns

CheckBox

this CheckBox object.

SetCheckmarkColor(int)

Sets the color of the check mark. Color.transparent leaves it unchanged.

public CheckBox SetCheckmarkColor(int checkmarkColor)

Parameters

checkmarkColor int

the check mark color specified as an 0xRRGGBB integer.

Returns

CheckBox

this CheckBox.

SetCheckmarkColor(float[])

Sets the color of the check mark.

public CheckBox SetCheckmarkColor(float[] rgbColor)

Parameters

rgbColor float[]

the color as red, green and blue components from 0.0 to 1.0.

Returns

CheckBox

this CheckBox object.

SetFontSize(float)

Sets the font size to use for this text line.

public CheckBox SetFontSize(float fontSize)

Parameters

fontSize float

the fontSize to use.

Returns

CheckBox

this CheckBox.

SetLocation(float, float)

Set the x,y location on the Page.

public CheckBox SetLocation(float x, float y)

Parameters

x float

the x coordinate on the Page.

y float

the y coordinate on the Page.

Returns

CheckBox

this CheckBox.

SetURIAction(string)

Sets the URI for the "click text line" action.

public CheckBox SetURIAction(string uri)

Parameters

uri string

the URI.

Returns

CheckBox

this CheckBox.