com.spire.doc.formatting
Class CellFormat

java.lang.Object
  extended by com.spire.doc.OwnerHolder
      extended by com.spire.doc.documents.xml.DocumentSerializable
          extended by com.spire.doc.formatting.FormatBase
              extended by com.spire.doc.formatting.AttrCollection
                  extended by com.spire.doc.formatting.WordAttrCollection
                      extended by com.spire.doc.formatting.CellFormat
All Implemented Interfaces:
IDocumentSerializable

public class CellFormat
extends WordAttrCollection

Cell Format Class


Constructor Summary
CellFormat()
          Initializes a new instance of the class.
 
Method Summary
 void clearBackground()
          Clears cell background.
 java.awt.Color getBackColor()
          Gets or sets background color.
 Borders getBorders()
          Gets borders.
 boolean getFitText()
          Gets or sets fit text option.
 CellMerge getHorizontalMerge()
          Returns or setsthe way of horizontal merging of the cell.
 Paddings getPaddings()
          Gets paddings.
 boolean getSamePaddingsAsTable()
          Defines whether to use same paddings as table has.
 TextDirection getTextDirection()
          Gets or sets cell text direction.
 boolean getTextWrap()
          Gets or sets a value indicating whether [text wrap].
 VerticalAlignment getVerticalAlignment()
          Gets or sets vertical alignment.
 CellMerge getVerticalMerge()
          Returns or setsthe way of vertical merging of the cell.
 void setBackColor(java.awt.Color value)
          Gets or sets background color.
 void setFitText(boolean value)
          Gets or sets fit text option.
 void setHorizontalMerge(CellMerge value)
          Returns or setsthe way of horizontal merging of the cell.
 void setSamePaddingsAsTable(boolean value)
          Defines whether to use same paddings as table has.
 void setTextDirection(TextDirection value)
          Gets or sets cell text direction.
 void setTextWrap(boolean value)
          Gets or sets a value indicating whether [text wrap].
 void setVerticalAlignment(VerticalAlignment value)
          Gets or sets vertical alignment.
 void setVerticalMerge(CellMerge value)
          Returns or setsthe way of vertical merging of the cell.
 
Methods inherited from class com.spire.doc.formatting.FormatBase
clearFormatting, hasKey, isDefault
 
Methods inherited from class com.spire.doc.OwnerHolder
getDocument
 

Constructor Detail

CellFormat

public CellFormat()
Initializes a new instance of the class.

Method Detail

getBorders

public Borders getBorders()
Gets borders.


getPaddings

public Paddings getPaddings()
Gets paddings.


getVerticalAlignment

public VerticalAlignment getVerticalAlignment()
Gets or sets vertical alignment.


setVerticalAlignment

public void setVerticalAlignment(VerticalAlignment value)
Gets or sets vertical alignment.


getBackColor

public java.awt.Color getBackColor()
Gets or sets background color.


setBackColor

public void setBackColor(java.awt.Color value)
Gets or sets background color.


getVerticalMerge

public CellMerge getVerticalMerge()
Returns or setsthe way of vertical merging of the cell.


setVerticalMerge

public void setVerticalMerge(CellMerge value)
Returns or setsthe way of vertical merging of the cell.


getHorizontalMerge

public CellMerge getHorizontalMerge()
Returns or setsthe way of horizontal merging of the cell.


setHorizontalMerge

public void setHorizontalMerge(CellMerge value)
Returns or setsthe way of horizontal merging of the cell.


getTextWrap

public boolean getTextWrap()
Gets or sets a value indicating whether [text wrap].

Returns:
true if it specifies text wrap, set to true.

setTextWrap

public void setTextWrap(boolean value)
Gets or sets a value indicating whether [text wrap].


getFitText

public boolean getFitText()
Gets or sets fit text option.


setFitText

public void setFitText(boolean value)
Gets or sets fit text option.


getTextDirection

public TextDirection getTextDirection()
Gets or sets cell text direction.


setTextDirection

public void setTextDirection(TextDirection value)
Gets or sets cell text direction.


getSamePaddingsAsTable

public boolean getSamePaddingsAsTable()
Defines whether to use same paddings as table has.


setSamePaddingsAsTable

public void setSamePaddingsAsTable(boolean value)
Defines whether to use same paddings as table has.


clearBackground

public void clearBackground()
Clears cell background.

Overrides:
clearBackground in class FormatBase