com.aspose.slides
Class CellEx

java.lang.Object
  extended by com.aspose.slides.CellEx

public class CellEx
extends java.lang.Object

Represents a cell of a table.


Method Summary
 boolean getAnchorCenter()
           Determines whether or not text box centered inside a cell.
 LineFormatEx getBorderBottom()
           Returns a bottom border line properties object.
 LineFormatEx getBorderDiagonalDown()
           Returns a top-left to bottom-right diagonal line properties object.
 LineFormatEx getBorderDiagonalUp()
           Returns a bottom-left to top-right diagonal line properties object.
 LineFormatEx getBorderLeft()
           Returns a left border line properties object.
 LineFormatEx getBorderRight()
           Returns a right border line properties object.
 LineFormatEx getBorderTop()
           Returns a top border line properties object.
 int getColSpan()
           Returns the number of grid columns in the parent table's table grid which shall be spanned by the current cell.
 FillFormatEx getFillFormat()
           Returns a cell fill properties object.
 int getFirstColumnIndex()
           Returns an index of first column, covered by the cell.
 int getFirstRowIndex()
           Returns an index of first row, covered by the cell.
 double getHeight()
           Returns the height of the cell.
 double getMarginBottom()
           Returns or sets the bottom margin in a TextFrame.
 double getMarginLeft()
           Returns or sets the left margin in a TextFrame.
 double getMarginRight()
           Returns or sets the right margin in a TextFrame.
 double getMarginTop()
           Returns or sets the top margin in a TextFrame.
 double getMinimalHeight()
           Returns the minimum height of a cell.
 double getOffsetX()
           Returns a distance from left side of a table to left side of a cell.
 double getOffsetY()
           Returns a distance from top side of a table to top side of a cell.
 PresentationEx getPresentation()
           Returns the parent presentation of a cell.
 int getRowSpan()
           Returns the number of rows that a merged cell spans.
 BaseSlideEx getSlide()
           Returns the parent slide of a cell.
 byte getTextAnchorType()
           Returns or sets the text anchor type.
 TextFrameEx getTextFrame()
           Returns the text frame of a cell.
 byte getTextVerticalType()
           Returns or sets the type of vertical text.
 double getWidth()
           Returns the width of the cell.
 void setAnchorCenter(boolean value)
           
 void setMarginBottom(double value)
           
 void setMarginLeft(double value)
           
 void setMarginRight(double value)
           
 void setMarginTop(double value)
           
 void setTextAnchorType(byte value)
           
 void setTextVerticalType(byte value)
           
 void splitByColSpan(int index)
           Splits the cell to two cells by index of column.
 void splitByHeight(double height)
           Splits the cell by height.
 void splitByRowSpan(int index)
           Splits the cell to two cells by index of row.
 void splitByWidth(double width)
           Splits the cell by width.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getOffsetX

public double getOffsetX()

Returns a distance from left side of a table to left side of a cell. Read-only double.


getOffsetY

public double getOffsetY()

Returns a distance from top side of a table to top side of a cell. Read-only double.


getFirstRowIndex

public int getFirstRowIndex()

Returns an index of first row, covered by the cell. Read-only int.


getFirstColumnIndex

public int getFirstColumnIndex()

Returns an index of first column, covered by the cell. Read-only int.


getWidth

public double getWidth()

Returns the width of the cell. Read-only double.


getHeight

public double getHeight()

Returns the height of the cell. Read-only double.


getMinimalHeight

public double getMinimalHeight()

Returns the minimum height of a cell. This is a sum of minimal heights of all rows cowered by the cell. Read-only double.


getBorderLeft

public LineFormatEx getBorderLeft()

Returns a left border line properties object. Read-only LineFormatEx.


getBorderTop

public LineFormatEx getBorderTop()

Returns a top border line properties object. Read-only LineFormatEx.


getBorderRight

public LineFormatEx getBorderRight()

Returns a right border line properties object. Read-only LineFormatEx.


getBorderBottom

public LineFormatEx getBorderBottom()

Returns a bottom border line properties object. Read-only LineFormatEx.


getBorderDiagonalDown

public LineFormatEx getBorderDiagonalDown()

Returns a top-left to bottom-right diagonal line properties object. Read-only LineFormatEx.


getBorderDiagonalUp

public LineFormatEx getBorderDiagonalUp()

Returns a bottom-left to top-right diagonal line properties object. Read-only LineFormatEx.


getFillFormat

public FillFormatEx getFillFormat()

Returns a cell fill properties object. Read-only FillFormatEx.


getMarginLeft

public double getMarginLeft()

Returns or sets the left margin in a TextFrame. Read/write double.


setMarginLeft

public void setMarginLeft(double value)

getMarginRight

public double getMarginRight()

Returns or sets the right margin in a TextFrame. Read/write double.


setMarginRight

public void setMarginRight(double value)

getMarginTop

public double getMarginTop()

Returns or sets the top margin in a TextFrame. Read/write double.


setMarginTop

public void setMarginTop(double value)

getMarginBottom

public double getMarginBottom()

Returns or sets the bottom margin in a TextFrame. Read/write double.


setMarginBottom

public void setMarginBottom(double value)

getTextVerticalType

public byte getTextVerticalType()

Returns or sets the type of vertical text. Read/write TextVerticalType.


setTextVerticalType

public void setTextVerticalType(byte value)

getTextAnchorType

public byte getTextAnchorType()

Returns or sets the text anchor type. Read/write TextAnchorType.


setTextAnchorType

public void setTextAnchorType(byte value)

getAnchorCenter

public boolean getAnchorCenter()

Determines whether or not text box centered inside a cell. Read/write bool.


setAnchorCenter

public void setAnchorCenter(boolean value)

getColSpan

public int getColSpan()

Returns 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 of other cells in the table. Read-only int.


getRowSpan

public int getRowSpan()

Returns 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 of a horizontal merge. Read-only int.


getTextFrame

public TextFrameEx getTextFrame()

Returns the text frame of a cell. Read-only TextFrameEx.


splitByColSpan

public void splitByColSpan(int index)

Splits the cell to two cells by index of column.

Parameters:
index - Index of column.

splitByRowSpan

public void splitByRowSpan(int index)

Splits the cell to two cells by index of row.

Parameters:
index - Index of row.

splitByHeight

public void splitByHeight(double height)

Splits the cell by height.

Parameters:
height - Height of a row.

splitByWidth

public void splitByWidth(double width)

Splits the cell by width.

Parameters:
width - Width of a column.

getSlide

public BaseSlideEx getSlide()

Returns the parent slide of a cell. Read-only BaseSlideEx.


getPresentation

public PresentationEx getPresentation()

Returns the parent presentation of a cell. Read-only PresentationEx.