com.aspose.slides.pptx
Class CellEx

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

public class CellEx
extends java.lang.Object

Represents a cell of a table.


Method Summary
 boolean getAnchorCenter()
          Determines whether the 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 the bottom margin in a text frame.
 double getMarginLeft()
          Returns the left margin in a text frame.
 double getMarginRight()
          Returns the right margin in a text frame.
 double getMarginTop()
          Returns the top margin in a text frame.
 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.
 TextAnchorTypeEx getTextAnchorType()
          Returns the text anchor type.
 TextFrameEx getTextFrame()
          Returns the text frame of a cell.
 TextVerticalTypeEx getTextVerticalType()
          Returns the type of vertical text.
 double getWidth()
          Returns the width of the cell.
 void setAnchorCenter(boolean value)
          Sets whether the text box centered inside a cell.
 void setMarginBottom(double value)
          Sets the bottom margin in a text frame.
 void setMarginLeft(double value)
          Sets the left margin in a text frame.
 void setMarginRight(double value)
          Sets the right margin in a text frame.
 void setMarginTop(double value)
          Sets the top margin in a text frame.
 void setTextAnchorType(TextAnchorTypeEx value)
          Sets the text anchor type.
 void setTextVerticalType(TextVerticalTypeEx value)
          Sets the type of a vertical text.
 void splitByColSpan(int index)
          Splits the cell to two cells by index of column.
 void splitByHeight(double height)
           
 void splitByRowSpan(int index)
          Splits the cell to two cells by index of row.
 void splitByWidth(double 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.


getOffsetY

public double getOffsetY()
Returns a distance from top side of a table to top side of a cell.


getFirstRowIndex

public int getFirstRowIndex()
Returns an index of first row, covered by the cell.


getFirstColumnIndex

public int getFirstColumnIndex()
Returns an index of first column, covered by the cell.


getWidth

public double getWidth()
Returns the width of the cell.


getHeight

public double getHeight()
Returns the height of the cell.


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.


getBorderLeft

public LineFormatEx getBorderLeft()
Returns a left border line properties object.

Returns:
See LineFormatEx.

getBorderTop

public LineFormatEx getBorderTop()
Returns a top border line properties object.

Returns:
See LineFormatEx.

getBorderRight

public LineFormatEx getBorderRight()
Returns a right border line properties object.

Returns:
See LineFormatEx.

getBorderBottom

public LineFormatEx getBorderBottom()
Returns a bottom border line properties object.

Returns:
See LineFormatEx.

getBorderDiagonalDown

public LineFormatEx getBorderDiagonalDown()
Returns a top-left to bottom-right diagonal line properties object.

Returns:
See LineFormatEx.

getBorderDiagonalUp

public LineFormatEx getBorderDiagonalUp()
Returns a bottom-left to top-right diagonal line properties object.

Returns:
See LineFormatEx.

getFillFormat

public FillFormatEx getFillFormat()
Returns a cell fill properties object.

Returns:
See FillFormatEx.

getMarginLeft

public double getMarginLeft()
Returns the left margin in a text frame.


setMarginLeft

public void setMarginLeft(double value)
Sets the left margin in a text frame.

Parameters:
value - new left margin.

getMarginRight

public double getMarginRight()
Returns the right margin in a text frame.


setMarginRight

public void setMarginRight(double value)
Sets the right margin in a text frame.

Parameters:
value - new right margin.

getMarginTop

public double getMarginTop()
Returns the top margin in a text frame.


setMarginTop

public void setMarginTop(double value)
Sets the top margin in a text frame.

Parameters:
value - new top margin.

getMarginBottom

public double getMarginBottom()
Returns the bottom margin in a text frame.


setMarginBottom

public void setMarginBottom(double value)
Sets the bottom margin in a text frame.

Parameters:
value - new bottom margin.

getTextVerticalType

public TextVerticalTypeEx getTextVerticalType()
Returns the type of vertical text.

Returns:
See TextVerticalTypeEx.

setTextVerticalType

public void setTextVerticalType(TextVerticalTypeEx value)
Sets the type of a vertical text.

Parameters:
value - new type of a vertical text. See TextVerticalTypeEx.

getTextAnchorType

public TextAnchorTypeEx getTextAnchorType()
Returns the text anchor type.

Returns:
See TextAnchoringTypeEx.

setTextAnchorType

public void setTextAnchorType(TextAnchorTypeEx value)
Sets the text anchor type.

Parameters:
value - new text anchor type. See TextAnchoringTypeEx.

getAnchorCenter

public boolean getAnchorCenter()
Determines whether the text box centered inside a cell.


setAnchorCenter

public void setAnchorCenter(boolean value)
Sets whether the text box centered inside a cell.

Parameters:
value - True to center text box inside a cell.

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.


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.


getTextFrame

public TextFrameEx getTextFrame()
Returns the text frame of a cell.

Returns:
See TextFrameEx.

getSlide

public BaseSlideEx getSlide()
Returns the parent slide of a cell.


getPresentation

public PresentationEx getPresentation()
Returns the parent presentation of a cell.


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)

splitByWidth

public void splitByWidth(double width)