|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.spire.xls.CellStyleObject
public class CellStyleObject
| Constructor Summary | |
|---|---|
CellStyleObject(IStyle style)
Creates object that will contain all styles that are used by range. |
|
| Method Summary | |
|---|---|
void |
beginUpdate()
This method should be called before several updates to the object will take place. |
void |
endUpdate()
This method should be called after several updates to the object took place. |
IBorders |
getBorders()
Returns a borders collection that represents the borders of a style or a range of cells (including a range defined as part of a conditional format). |
boolean |
getBuiltIn()
True if the style is a built-in style. |
ExcelPatternType |
getFillPattern()
Gets fill pattern type. |
IFont |
getFont()
Returns a font object that represents the font of the specified object. |
boolean |
getFormulaHidden()
True if the formula will be hidden when the worksheet is protected. |
HorizontalAlignType |
getHorizontalAlignment()
Returns the horizontal alignment for the specified object. |
boolean |
getIncludeAlignment()
True if the style includes the add indent, horizontal alignment, vertical alignment, wrap text, and orientation properties. |
boolean |
getIncludeBorder()
True if the style includes the color, known color, line style, and weight border properties |
boolean |
getIncludeFont()
True if the style includes the background, bold, color, known color, font style, italic, name, outline font, shadow, size, strikethrough, subscript, superscript, and underline font properties. |
boolean |
getIncludeNumberFormat()
True if the style includes the NumberFormat property. |
boolean |
getIncludePatterns()
True if the style includes the color, known color, invert if negative, pattern, pattern color, and pattern known color interior properties. |
boolean |
getIncludeProtection()
True if the style includes the formula hidden and Locked protection properties. |
int |
getIndentLevel()
Returns the indent level for the style. |
IInterior |
getInterior()
Returns interior object for this extended format. |
boolean |
getJustifyLast()
Represents justify text alignment |
ExcelColors |
getKnownColor()
Gets the cell shading excel color. |
boolean |
getLocked()
True if the object is locked; False if the object can be modified when the sheet is protected. |
java.lang.String |
getName()
Returns the name of the object. |
java.lang.String |
getNumberFormat()
Returns the format code for the object. |
int |
getNumberFormatIndex()
Gets format index. |
java.lang.String |
getNumberFormatLocal()
Returns the format code for the object as a string in the language of the user. |
INumberFormat |
getNumberFormatSettings()
Returns object that describes number format. |
java.lang.Object |
getParent()
|
java.awt.Color |
getPatternColor()
Returns the color of the interior pattern. |
ExcelColors |
getPatternKnownColor()
Returns the excel color of the interior. |
ReadingOrderType |
getReadingOrder()
Returns the reading order for the specified object. |
int |
getRotation()
The text orientation. |
boolean |
getShrinkToFit()
True if text automatically shrinks to fit in the available column width. |
VerticalAlignType |
getVerticalAlignment()
Returns the vertical alignment of the specified object. |
boolean |
getWrapText()
True if microsoft excel wraps the text in the object. |
boolean |
isFirstSymbolApostrophe()
If true then first symbol in cell is apostrophe. |
void |
isFirstSymbolApostrophe(boolean isFirstSymbolApostrophe)
If true then first symbol in cell is apostrophe. |
boolean |
isInitialized()
Indicates whether style is initialized (differs from Normal style). |
boolean |
isModified()
|
void |
setColor(java.awt.Color color)
Sets the cell shading color. |
void |
setFillPattern(ExcelPatternType fillPattern)
Sets fill pattern type. |
void |
setFormulaHidden(boolean formulaHidden)
Sets if the formula will be hidden when the worksheet is protected. |
void |
setHorizontalAlignment(HorizontalAlignType horizontalAlignment)
Sets the horizontal alignment for the specified object. |
void |
setIncludeAlignment(boolean includeAlignment)
Sets if the style includes the add indent, horizontal alignment, vertical alignment, wrap text, and orientation properties. |
void |
setIncludeBorder(boolean includeBorder)
Sets if the style includes the color, known color, line style, and weight border properties. |
void |
setIncludeFont(boolean includeFont)
Sets if the style includes the background, bold, color, known color, font style, italic, name, outline font, shadow, size, strikethrough, subscript, superscript, and underline font properties. |
void |
setIncludeNumberFormat(boolean includeNumberFormat)
True if the style includes the number format property. |
void |
setIncludePatterns(boolean includePatterns)
True if the style includes the color, known color, invert if negative, pattern, pattern color, and pattern known color interior properties. |
void |
setIncludeProtection(boolean includeProtection)
Sets if the style includes the formula hidden and Locked protection properties. |
void |
setIndentLevel(int indentLevel)
Sets the indent level for the style. |
void |
setJustifyLast(boolean justifyLast)
Sets justify text alignment |
void |
setKnownColor(ExcelColors knownColor)
Sets the cell shading excel color. |
void |
setLocked(boolean locked)
Sets true if the object is locked; False if the object can be modified when the sheet is protected. |
void |
setNumberFormat(java.lang.String numberFormat)
Sets the format code for the object. |
void |
setNumberFormatIndex(int numberFormatIndex)
Sets format index. |
void |
setNumberFormatLocal(java.lang.String numberFormatLocal)
Sets the format code for the object as a string in the language of the user. |
void |
setPatternColor(java.awt.Color patternColor)
Sets the color of the interior pattern. |
void |
setPatternKnownColor(ExcelColors patternKnownColor)
Sets the excel color of the interior. |
void |
setReadingOrder(ReadingOrderType readingOrder)
Sets the reading order for the specified object. |
void |
setRotation(int rotation)
The text orientation. |
void |
setShrinkToFit(boolean shrinkToFit)
True if text automatically shrinks to fit in the available column width. |
void |
setVerticalAlignment(VerticalAlignType verticalAlignment)
Sets the vertical alignment of the specified object. |
void |
setWrapText(boolean wrapText)
True if Microsoft Excel wraps the text in the object. |
| Methods inherited from interface com.spire.xls.core.IExtendedFormat |
|---|
getColor |
| Constructor Detail |
|---|
public CellStyleObject(IStyle style)
style - Range from which styles must be taken.| Method Detail |
|---|
public boolean getJustifyLast()
getJustifyLast in interface IExtendedFormatpublic void setJustifyLast(boolean justifyLast)
public java.lang.String getNumberFormatLocal()
getNumberFormatLocal in interface IExtendedFormatpublic void setNumberFormatLocal(java.lang.String numberFormatLocal)
setNumberFormatLocal in interface IExtendedFormatpublic IInterior getInterior()
IStyle
getInterior in interface IStylepublic boolean isModified()
isModified in interface IExtendedFormatpublic IBorders getBorders()
getBorders in interface IExtendedFormatpublic boolean getBuiltIn()
getBuiltIn in interface IStylepublic ExcelPatternType getFillPattern()
getFillPattern in interface IExtendedFormatpublic void setFillPattern(ExcelPatternType fillPattern)
setFillPattern in interface IExtendedFormatpublic IFont getFont()
getFont in interface IExtendedFormatpublic boolean getFormulaHidden()
getFormulaHidden in interface IExtendedFormatpublic void setFormulaHidden(boolean formulaHidden)
setFormulaHidden in interface IExtendedFormatpublic HorizontalAlignType getHorizontalAlignment()
getHorizontalAlignment in interface IExtendedFormatpublic void setHorizontalAlignment(HorizontalAlignType horizontalAlignment)
setHorizontalAlignment in interface IExtendedFormatpublic boolean getIncludeAlignment()
getIncludeAlignment in interface IExtendedFormatpublic void setIncludeAlignment(boolean includeAlignment)
setIncludeAlignment in interface IExtendedFormatpublic boolean getIncludeBorder()
getIncludeBorder in interface IExtendedFormatpublic void setIncludeBorder(boolean includeBorder)
public boolean getIncludeFont()
getIncludeFont in interface IExtendedFormatpublic void setIncludeFont(boolean includeFont)
setIncludeFont in interface IExtendedFormatpublic boolean getIncludeNumberFormat()
getIncludeNumberFormat in interface IExtendedFormatpublic void setIncludeNumberFormat(boolean includeNumberFormat)
setIncludeNumberFormat in interface IExtendedFormatpublic boolean getIncludePatterns()
getIncludePatterns in interface IExtendedFormatpublic void setIncludePatterns(boolean includePatterns)
setIncludePatterns in interface IExtendedFormatpublic boolean getIncludeProtection()
getIncludeProtection in interface IExtendedFormatpublic void setIncludeProtection(boolean includeProtection)
setIncludeProtection in interface IExtendedFormatpublic int getIndentLevel()
getIndentLevel in interface IExtendedFormatpublic void setIndentLevel(int indentLevel)
setIndentLevel in interface IExtendedFormatpublic boolean isInitialized()
isInitialized in interface IStylepublic boolean getLocked()
getLocked in interface IExtendedFormatpublic void setLocked(boolean locked)
setLocked in interface IExtendedFormatpublic java.lang.String getName()
getName in interface IStylepublic java.lang.String getNumberFormat()
getNumberFormat in interface IExtendedFormatpublic void setNumberFormat(java.lang.String numberFormat)
setNumberFormat in interface IExtendedFormatpublic int getNumberFormatIndex()
getNumberFormatIndex in interface IExtendedFormatpublic void setNumberFormatIndex(int numberFormatIndex)
setNumberFormatIndex in interface IExtendedFormatpublic INumberFormat getNumberFormatSettings()
getNumberFormatSettings in interface IExtendedFormatpublic int getRotation()
getRotation in interface IExtendedFormatpublic void setRotation(int rotation)
setRotation in interface IExtendedFormatpublic boolean getShrinkToFit()
getShrinkToFit in interface IExtendedFormatpublic void setShrinkToFit(boolean shrinkToFit)
setShrinkToFit in interface IExtendedFormatpublic VerticalAlignType getVerticalAlignment()
getVerticalAlignment in interface IExtendedFormatpublic void setVerticalAlignment(VerticalAlignType verticalAlignment)
setVerticalAlignment in interface IExtendedFormatpublic boolean getWrapText()
getWrapText in interface IExtendedFormatpublic void setWrapText(boolean wrapText)
setWrapText in interface IExtendedFormatpublic ReadingOrderType getReadingOrder()
getReadingOrder in interface IExtendedFormatpublic void setReadingOrder(ReadingOrderType readingOrder)
setReadingOrder in interface IExtendedFormatpublic boolean isFirstSymbolApostrophe()
isFirstSymbolApostrophe in interface IExtendedFormatpublic void isFirstSymbolApostrophe(boolean isFirstSymbolApostrophe)
isFirstSymbolApostrophe in interface IExtendedFormatpublic ExcelColors getPatternKnownColor()
getPatternKnownColor in interface IExtendedFormatpublic void setPatternKnownColor(ExcelColors patternKnownColor)
setPatternKnownColor in interface IExtendedFormatpublic java.awt.Color getPatternColor()
getPatternColor in interface IExtendedFormatpublic void setPatternColor(java.awt.Color patternColor)
setPatternColor in interface IExtendedFormatpublic ExcelColors getKnownColor()
getKnownColor in interface IExtendedFormatpublic void setKnownColor(ExcelColors knownColor)
setKnownColor in interface IExtendedFormatpublic void setColor(java.awt.Color color)
setColor in interface IExtendedFormatpublic java.lang.Object getParent()
public void beginUpdate()
beginUpdate in interface IOptimizedUpdatepublic void endUpdate()
endUpdate in interface IOptimizedUpdate
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||