|
|||||||||
prev class next class | frames no frames | ||||||||
summary: nested | field | constr | method | detail: field | constr | method |
java.lang.objectcom.spire.doc.ownerholder
com.spire.doc.documents.xml.documentserializable
com.spire.doc.documentobject
com.spire.doc.documentbase
com.spire.doc.bodyregion
com.spire.doc.table
public class table
constructor summary | |
---|---|
table(idocument doc)
initializes a new instance of the table class. |
|
table(idocument doc,
boolean showborder)
initializes a new instance of the table class. |
|
table(idocument doc,
boolean showborder,
float linewidth)
initializes a new instance of the table class. |
method summary | |
---|---|
iparagraph |
addcaption(java.lang.string name,
captionnumberingformat format,
captionposition captionposition)
add caption for current table |
tablerow |
addrow()
adds a row to table |
tablerow |
addrow(boolean iscopyformat)
adds new row to table. |
tablerow |
addrow(boolean iscopyformat,
boolean autopopulatecells)
adds a row to table with copy format option |
tablerow |
addrow(boolean iscopyformat,
int columnsnum)
adds a row to table with copy format option |
tablerow |
addrow(int columnsnum)
adds a row to table with copy format from the current last row, and then add columnsnum cells to the new row. |
void |
applyhorizontalmerge(int rowindex,
int startcellindex,
int endcellindex)
applies horizontal merging for cells of table row. |
void |
applystyle(defaulttablestyle builtintablestyle)
applies the built-in table style. |
void |
applytablestyle()
applies the table style properties to table and cell. |
void |
applyverticalmerge(int columnindex,
int startrowindex,
int endrowindex)
applies the vertical merge for table cells. |
void |
autofit(autofitbehaviortype behavior)
determines how microsoft word resizes a table when the autofit feature is used. |
table |
deepclone()
clones this instance. |
textselection |
find(java.util.regex.pattern pattern)
finds text by specified pattern. |
tablecell |
get(int row,
int column)
get table cell by row and column indexes. |
documentobjectcollection |
getchildobjects()
gets the child entities. |
float[] |
getcolumnwidth()
gets the width of each column. |
int |
getdefaultcolumnsnumber()
gets the default column count of per row. |
float |
getdefaultcolumnwidth()
gets the default width of each column. |
float |
getdefaultrowheight()
gets the default row height, the unit of measure is point, 1point = 0.3528 mm |
documentobjecttype |
getdocumentobjecttype()
gets the type of the document object. |
tablerow |
getfirstrow()
get first row of the table. |
float |
getindentfromleft()
gets indent from left for the table. |
tablecell |
getlastcell()
get last cell of the table |
tablerow |
getlastrow()
get last row of the table. |
preferredwidth |
getpreferredwidth()
this property specifies the preferred horizontal width of a table. |
rowcollection |
getrows()
get the table rows |
java.lang.string |
gettabledescription()
gets the table description. |
rowformat |
gettableformat()
gets the table formatting after resetcells call. |
java.lang.string |
gettablestylename()
gets table style name. |
java.lang.string |
gettitle()
gets the table title. |
float |
getwidth()
gets the table width |
void |
removeabsposition()
removes the absolute position data. |
int |
replace(java.util.regex.pattern pattern,
java.lang.string replace)
replaces all entries of matchstring regular expression with newvalue string. |
int |
replace(java.util.regex.pattern pattern,
textselection textselection)
replaces by specified pattern. |
int |
replace(java.util.regex.pattern pattern,
textselection textselection,
boolean saveformatting)
replaces by specified pattern. |
int |
replace(java.lang.string given,
java.lang.string replace,
boolean casesensitive,
boolean wholeword)
replaces by specified matchstring string. |
void |
resetcells(int rowsnum,
int columnsnum)
resets rows / columns numbers. |
void |
resetcells(int rowsnum,
int columnsnum,
rowformat format,
float cellwidth)
resets rows / columns numbers. |
void |
setcolumnwidth(float[] value)
sets the width of each column. |
void |
setdefaultcolumnsnumber(int value)
sets the default column count of per row. |
void |
setdefaultcolumnwidth(float value)
sets the default width of each column. |
void |
setdefaultrowheight(float value)
sets the default row height, the unit of measure is point, 1point = 0.3528 mm |
void |
setindentfromleft(float value)
sets indent from left for the table. |
void |
setpreferredwidth(preferredwidth value)
this property specifies the preferred horizontal width of a table. |
void |
settabledescription(java.lang.string value)
sets the table description. |
void |
settitle(java.lang.string value)
sets the table title. |
methods inherited from class com.spire.doc.bodyregion |
---|
isdeleterevision, isinsertrevision, ownertextbody |
methods inherited from class com.spire.doc.documentobject |
---|
getfirstchild, getlastchild, getnextsibling, getowner, getprevioussibling, iscomposite, tostring |
methods inherited from class com.spire.doc.ownerholder |
---|
getdocument |
methods inherited from interface com.spire.doc.interfaces.idocumentobject |
---|
getdocument, getnextsibling, getowner, getprevioussibling, iscomposite |
constructor detail |
---|
public table(idocument doc)
table
class.
doc
- the doc.public table(idocument doc, boolean showborder)
table
class.
doc
- the doc.showborder
- if it specifies to show the table border,set to truepublic table(idocument doc, boolean showborder, float linewidth)
table
class.
doc
- the docshowborder
- the showborderlinewidth
- the linewidthmethod detail |
---|
public float getdefaultrowheight()
public void setdefaultrowheight(float value)
value
- floatpublic int getdefaultcolumnsnumber()
public void setdefaultcolumnsnumber(int value)
public float getdefaultcolumnwidth()
public void setdefaultcolumnwidth(float value)
value
- floatpublic void autofit(autofitbehaviortype behavior)
behavior
- how word resizes the specified table with the autofit feature is used.public float[] getcolumnwidth()
public void setcolumnwidth(float[] value)
value
- float[]public documentobjecttype getdocumentobjecttype()
getdocumentobjecttype
in interface idocumentobject
getdocumentobjecttype
in class documentobject
public rowcollection getrows()
getrows
in interface itable
public rowformat gettableformat()
gettableformat
in interface itable
public preferredwidth getpreferredwidth()
public void setpreferredwidth(preferredwidth value)
value
- this property specifies the preferred horizontal width of a table.public java.lang.string gettablestylename()
public tablecell getlastcell()
getlastcell
in interface itable
public tablerow getfirstrow()
getfirstrow
in interface itable
public tablerow getlastrow()
getlastrow
in interface itable
public tablecell get(int row, int column)
get
in interface itable
row
- rowcolumn
- column
public float getwidth()
getwidth
in interface itable
public documentobjectcollection getchildobjects()
getchildobjects
in interface icompositeobject
getchildobjects
in class documentobject
public float getindentfromleft()
getindentfromleft
in interface itable
public void setindentfromleft(float value)
setindentfromleft
in interface itable
value
- indent from left for the table.public java.lang.string gettitle()
public void settitle(java.lang.string value)
value
- the title.public java.lang.string gettabledescription()
public void settabledescription(java.lang.string value)
value
- stringpublic iparagraph addcaption(java.lang.string name, captionnumberingformat format, captionposition captionposition)
name
- captionpositionformat
- namecaptionposition
- format
public table deepclone()
deepclone
in interface idocumentobject
deepclone
in class documentobject
public void resetcells(int rowsnum, int columnsnum)
resetcells
in interface itable
rowsnum
- the rows number.columnsnum
- the columns number.public void resetcells(int rowsnum, int columnsnum, rowformat format, float cellwidth)
resetcells
in interface itable
rowsnum
- the rows num.columnsnum
- the columns num.format
- the format.cellwidth
- width of the cell.public void applystyle(defaulttablestyle builtintablestyle)
builtintablestyle
- the built-in table style.public void applytablestyle()
public tablerow addrow()
addrow
in interface itable
public tablerow addrow(int columnsnum)
columnsnum
- the number of the count of the new row, it's must be -1 < columnsnum < 64.
public tablerow addrow(boolean iscopyformat)
addrow
in interface itable
iscopyformat
- boolean
public tablerow addrow(boolean iscopyformat, boolean autopopulatecells)
addrow
in interface itable
iscopyformat
- indicates whether copy format from previous row or notautopopulatecells
- if it specifies auto populate cells, set to public tablerow addrow(boolean iscopyformat, int columnsnum)
iscopyformat
- indicates whether copy format from previous row or notcolumnsnum
- the number of the count of the new row,
it's must be -1 < columnsnum < 64.
public int replace(java.util.regex.pattern pattern, java.lang.string replace)
replace
in interface ibodyregion
replace
in class bodyregion
pattern
- patternreplace
- replace text
public int replace(java.lang.string given, java.lang.string replace, boolean casesensitive, boolean wholeword)
replace
in interface ibodyregion
replace
in class bodyregion
given
- the matchstring.replace
- the newvalue.casesensitive
- if it specifies case sensitive, set to truewholeword
- if it specifies to search a whole word,set to true
public int replace(java.util.regex.pattern pattern, textselection textselection)
replace
in interface ibodyregion
replace
in class bodyregion
pattern
- the pattern.textselection
- the text selection.
public int replace(java.util.regex.pattern pattern, textselection textselection, boolean saveformatting)
replace
in class bodyregion
pattern
- the pattern.textselection
- the text selection.saveformatting
- if save source formatting, set to true
public textselection find(java.util.regex.pattern pattern)
find
in class bodyregion
pattern
- the pattern.
public void applyverticalmerge(int columnindex, int startrowindex, int endrowindex)
applyverticalmerge
in interface itable
columnindex
- index of the column.startrowindex
- start index of the row.endrowindex
- end index of the row.public void applyhorizontalmerge(int rowindex, int startcellindex, int endcellindex)
applyhorizontalmerge
in interface itable
rowindex
- index of the row.startcellindex
- start index of the cell.endcellindex
- end index of the cell.public void removeabsposition()
removeabsposition
in interface itable
|
|||||||||
prev class next class | frames no frames | ||||||||
summary: nested | field | constr | method | detail: field | constr | method |