cell-ag凯发旗舰厅



com.spire.presentation
class cell

java.lang.object
  extended by com.spire.presentation.cell
all implemented interfaces:
iactivepresentation, islidecomponent

public class cell
extends java.lang.object
implements islidecomponent

represents a cell of a table.


constructor summary
cell(tablerow tablerow, tablecolumn tablecolumn)
           
 
method summary
 boolean getanchorcenter()
          indicates whether or not text box centered inside a cell.
 textlineformat getborderbottom()
          gets a bottom border line properties object.
 textlineformat getborderdiagonaldown()
          gets a top-left to bottom-right diagonal line properties object.
 textlineformat getborderdiagonalup()
          gets a bottom-left to top-right diagonal line properties object.
 textlineformat getborderleft()
          gets a left border line properties object.
 textlineformat getborderright()
          gets a right border line properties object.
 textlineformat getbordertop()
          gets a top border line properties object.
 int getcolspan()
          gets the number of grid columns in the parent table's table grid which shall be spanned by the current cell.
 fillformat getfillformat()
          gets a cell fill properties object.
 int getfirstcolumnindex()
          gets an index of first column, covered by the cell.
 int getfirstrowindex()
          gets an index of first row, covered by the cell.
 double getheight()
          gets the height of the cell.
 double getmarginbottom()
          gets the bottom margin in a textframe.
 double getmarginleft()
          gets the left margin in a textframe.
 double getmarginright()
          gets the right margin in a textframe.
 double getmargintop()
          gets the top margin in a textframe.
 double getminimalheight()
          gets the minimum height of a cell.
 double getoffsetx()
          gets a distance from left side of a table to left side of a cell.
 double getoffsety()
          gets a distance from top side of a table to top side of a cell.
 presentation getpresentation()
          gets the parent presentation of a cell.
 int getrowspan()
          gets the number of rows that a merged cell spans.
 activeslide getslide()
          gets the parent slide of a cell.
 textanchortype gettextanchortype()
          gets the text anchor type.
 itextframeproperties gettextframe()
          gets the text frame of a cell.
 verticaltexttype getverticaltexttype()
          gets the type of vertical text.
 double getwidth()
          gets the width of the cell.
 void setanchorcenter(boolean value)
           
 void setmarginbottom(double value)
          sets the bottom margin in a textframe.
 void setmarginleft(double value)
          sets the left margin in a textframe.
 void setmarginright(double value)
          sets the right margin in a textframe.
 void setmargintop(double value)
          sets the top margin in a textframe.
 void settextanchortype(textanchortype value)
          sets the text anchor type.
 void setverticaltexttype(verticaltexttype value)
          sets the type of vertical text.
 void split(int rowcount, int colunmcount)
          split the cell.
 void splitbyspan()
          the cell is split into its rowspan rows in the row direction, and it is split into its colspan colunms in the colunm direction.
 
constructor detail

cell

public cell(tablerow tablerow,
            tablecolumn tablecolumn)
method detail

getoffsetx

public double getoffsetx()
gets a distance from left side of a table to left side of a cell. read-only .
returns:

getoffsety

public double getoffsety()
gets a distance from top side of a table to top side of a cell. read-only .
returns:

getfirstrowindex

public int getfirstrowindex()
gets an index of first row, covered by the cell. read-only .
returns:

getfirstcolumnindex

public int getfirstcolumnindex()
gets an index of first column, covered by the cell. read-only .
returns:

getwidth

public double getwidth()
gets the width of the cell. read-only .
returns:

getheight

public double getheight()
gets the height of the cell. read-only .
returns:

getminimalheight

public double getminimalheight()
gets the minimum height of a cell. this is a sum of minimal heights of all rows cowered by the cell. read-only .
returns:

getborderleft

public textlineformat getborderleft()
gets a left border line properties object. read-only .
returns:

getbordertop

public textlineformat getbordertop()
gets a top border line properties object. read-only .
returns:

getborderright

public textlineformat getborderright()
gets a right border line properties object. read-only .
returns:

getborderbottom

public textlineformat getborderbottom()
gets a bottom border line properties object. read-only .
returns:

getborderdiagonaldown

public textlineformat getborderdiagonaldown()
gets a top-left to bottom-right diagonal line properties object. read-only .
returns:

getborderdiagonalup

public textlineformat getborderdiagonalup()
gets a bottom-left to top-right diagonal line properties object. read-only .
returns:

getfillformat

public fillformat getfillformat()
gets a cell fill properties object. read-only .
returns:

getmarginleft

public double getmarginleft()
gets the left margin in a textframe. read/write .
returns:

setmarginleft

public void setmarginleft(double value)
sets the left margin in a textframe. read/write .

getmarginright

public double getmarginright()
gets the right margin in a textframe. read/write .
returns:

setmarginright

public void setmarginright(double value)
sets the right margin in a textframe. read/write .

getmargintop

public double getmargintop()
gets the top margin in a textframe. read/write .
returns:

setmargintop

public void setmargintop(double value)
sets the top margin in a textframe. read/write .

getmarginbottom

public double getmarginbottom()
gets the bottom margin in a textframe. read/write .
returns:

setmarginbottom

public void setmarginbottom(double value)
sets the bottom margin in a textframe. read/write .

getverticaltexttype

public verticaltexttype getverticaltexttype()
gets the type of vertical text. read/write .
returns:

setverticaltexttype

public void setverticaltexttype(verticaltexttype value)
sets the type of vertical text. read/write .

gettextanchortype

public textanchortype gettextanchortype()
gets the text anchor type. read/write .
returns:

settextanchortype

public void settextanchortype(textanchortype value)
sets the text anchor type. read/write .

getanchorcenter

public boolean getanchorcenter()
indicates whether or not text box centered inside a cell. read/write .
returns:

setanchorcenter

public void setanchorcenter(boolean value)

getcolspan

public int getcolspan()
gets the number of grid columns in the parent table's table grid which shall be spanned by the current cell. this property allows cells to have the appearance of being merged, as they span vertical boundaries read-only . of other cells in the table.
returns:

getrowspan

public int getrowspan()
gets the number of rows that a merged cell spans. this is used in combination with the vmerge attribute on other cells in order to specify the beginning cell read-only . of a horizontal merge.
returns:

gettextframe

public itextframeproperties gettextframe()
gets the text frame of a cell. read-only .
returns:

getslide

public activeslide getslide()
gets the parent slide of a cell. read-only .
specified by:
getslide in interface islidecomponent
returns:

getpresentation

public presentation getpresentation()
gets the parent presentation of a cell. read-only .
specified by:
getpresentation in interface iactivepresentation
returns:

split

public void split(int rowcount,
                  int colunmcount)
split the cell.
parameters:
rowcount - the number of cells being split in the row direction.
colunmcount - the number of cells being split in the colunm direction.
throws:
java.lang.exception

splitbyspan

public void splitbyspan()
the cell is split into its rowspan rows in the row direction, and it is split into its colspan colunms in the colunm direction.


网站地图