pdftextboxfield-ag凯发旗舰厅



com.spire.pdf.fields
class pdftextboxfield

java.lang.object
  extended by com.spire.pdf.fields.pdffield
      extended by com.spire.pdf.fields.pdfstyledfield
          extended by com.spire.pdf.fields.pdfappearancefield
              extended by com.spire.pdf.fields.pdftextboxfield
all implemented interfaces:
ipdfwrapper, ipdftextboxfield

public class pdftextboxfield
extends pdfappearancefield
implements ipdftextboxfield

represents text box field in the pdf form.


constructor summary
pdftextboxfield()
           
pdftextboxfield(pdfpagebase page, java.lang.string name)
          initializes a new instance of the class.
 
method summary
 java.lang.string getdefaultvalue()
          gets the default value.
 boolean getinsertspaces()
          meaningful only if the maxlength property is set and the multiline, password properties are false.
 int getmaxlength()
          gets the maximum number of characters that can be entered in the text box.
 boolean getmultiline()
          gets a value indicating whether this is multiline.
 boolean getpassword()
          gets a value indicating whether this is password field.
  getpdfformfieldtextalignment()
          gets pdftextalignment
 boolean getrequired()
          gets a value indicating whether this is required.
 boolean getscrollable()
          gets a value indicating whether this is scrollable.
 boolean getspellcheck()
          gets a value indicating whether to check spelling.
 java.lang.string gettext()
          gets the text.
 void setdefaultvalue(java.lang.string value)
          sets the default value.
 void setfont(pdffontbase value)
          sets the font
 void setinsertspaces(boolean value)
          meaningful only if the maxlength property is set and the multiline, password properties are false.
 void setmaxlength(int value)
          sts the maximum number of characters that can be entered in the text box.
 void setmultiline(boolean value)
          sets a value indicating whether this is multiline.
 void setpassword(boolean value)
          sets a value indicating whether this is password field.
 void setrequired(boolean value)
          sets a value indicating whether this is required.
 void setscrollable(boolean value)
          sets a value indicating whether this is scrollable.
 void setspellcheck(boolean value)
          sets a value indicating whether to check spelling.
 void settext(java.lang.string value)
          sets the text.
 void settextalignment( pdfformfieldtextalignment)
          sets textalignment
 
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
 
methods inherited from interface com.spire.pdf.widget.ipdftextboxfield
getname
 
constructor detail

pdftextboxfield

public pdftextboxfield(pdfpagebase page,
                       java.lang.string name)
initializes a new instance of the class.
parameters:
page - page which the field to be placed on.
name - the name of the text box field.

pdftextboxfield

public pdftextboxfield()
method detail

getpdfformfieldtextalignment

public  getpdfformfieldtextalignment()
gets pdftextalignment
returns:
the pdftextalignment enum

settextalignment

public void settextalignment( pdfformfieldtextalignment)
sets textalignment
parameters:
pdfformfieldtextalignment - the pdfformfieldtextalignment enum

gettext

public java.lang.string gettext()
gets the text.

settext

public void settext(java.lang.string value)
sets the text.

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

setfont

public void setfont(pdffontbase value)
sets the font
overrides:
setfont in class pdfstyledfield
parameters:
value - pdffontbase

getdefaultvalue

public java.lang.string getdefaultvalue()
gets the default value.

setdefaultvalue

public void setdefaultvalue(java.lang.string value)
sets the default value.

getspellcheck

public boolean getspellcheck()
gets a value indicating whether to check spelling.

setspellcheck

public void setspellcheck(boolean value)
sets a value indicating whether to check spelling.

getinsertspaces

public boolean getinsertspaces()
meaningful only if the maxlength property is set and the multiline, password properties are false. if set, the field is automatically divided into as many equally spaced positions, or combs, as the value of maxlength, and the text is laid out into those combs.

setinsertspaces

public void setinsertspaces(boolean value)
meaningful only if the maxlength property is set and the multiline, password properties are false. if set, the field is automatically divided into as many equally spaced positions, or combs, as the value of maxlength, and the text is laid out into those combs.

getmultiline

public boolean getmultiline()
gets a value indicating whether this is multiline.

setmultiline

public void setmultiline(boolean value)
sets a value indicating whether this is multiline.

getpassword

public boolean getpassword()
gets a value indicating whether this is password field.

setpassword

public void setpassword(boolean value)
sets a value indicating whether this is password field.

getscrollable

public boolean getscrollable()
gets a value indicating whether this is scrollable.

setscrollable

public void setscrollable(boolean value)
sets a value indicating whether this is scrollable.

getmaxlength

public int getmaxlength()
gets the maximum number of characters that can be entered in the text box.

setmaxlength

public void setmaxlength(int value)
sts the maximum number of characters that can be entered in the text box.


网站地图