Class CheckBox
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
Methods
Check(int)
Checks or unchecks this check box. See the Mark class for available options.
public CheckBox Check(int mark)
Parameters
markint
Returns
- CheckBox
this CheckBox.
DrawOn(Page)
Draws this CheckBox on the specified Page.
public float[] DrawOn(Page page)
Parameters
pagePagethe 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
GetHeight()
Gets the height of the CheckBox.
public float GetHeight()
Returns
GetWidth()
Gets the width of the CheckBox.
public float GetWidth()
Returns
SetActualText(string)
Sets the actual text for this check box.
public CheckBox SetActualText(string actualText)
Parameters
actualTextstringthe 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
altDescriptionstringthe 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
borderColorintthe 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
rgbColorfloat[]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
checkmarkColorintthe 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
rgbColorfloat[]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
fontSizefloatthe 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
Returns
- CheckBox
this CheckBox.
SetURIAction(string)
Sets the URI for the "click text line" action.
public CheckBox SetURIAction(string uri)
Parameters
uristringthe URI.
Returns
- CheckBox
this CheckBox.