pdfcheckboxfield-ag凯发旗舰厅
com.spire.pdf.fields
class pdfcheckboxfield
java.lang.object
com.spire.pdf.fields.pdffield
com.spire.pdf.fields.pdfstyledfield
com.spire.pdf.fields.pdfcheckfieldbase
com.spire.pdf.fields.pdfcheckboxfield
- all implemented interfaces:
- ipdfwrapper
public class pdfcheckboxfield
- extends pdfcheckfieldbase
represents check box field in the pdf form.
method summary |
boolean |
getchecked()
gets or sets a value indicating whether this is checked. |
boolean |
getrequired()
gets a value indicating whether this is required. |
void |
setchecked(boolean value)
sets or sets a value indicating whether this is checked. |
void |
setrequired(boolean value)
sets a value indicating whether this is required. |
methods inherited from class com.spire.pdf.fields.pdfstyledfield |
getactions, getbackcolor, getborderstyle, getborderwidth, getbounds, getforecolor, getlocation, getsize, gettextalignment, getvisible, setbackcolor, setbordercolor, setborderstyle, setborderwidth, setbounds, setforecolor, setlocation, setsize, settextalignment, setvisible |
methods inherited from class com.spire.pdf.fields.pdffield |
getexport, getflatten, getform, getmappingname, getname, getpage, getreadonly, gettooltip, setexport, setflatten, setreadonly, settooltip |
pdfcheckboxfield
public pdfcheckboxfield(pdfpagebase page,
java.lang.string name)
- initializes a new instance of the class.
- parameters:
page
- the page where the fields should be placed.name
- the name of the check box field.
getchecked
public boolean getchecked()
- gets or sets a value indicating whether this is checked.
setchecked
public void setchecked(boolean value)
- sets or sets a value indicating whether this is checked.
- parameters:
value
- true if checked; otherwise, false.
getrequired
public boolean getrequired()
- gets a value indicating whether this is required.
- overrides:
getrequired
in class pdffield
- returns:
- boolean value
setrequired
public void setrequired(boolean value)
- sets a value indicating whether this is required.
- overrides:
setrequired
in class pdffield
- parameters:
value
- boolean value