public interface IStyle
| Modifier and Type | Method and Description |
|---|---|
boolean |
delete()
Deletes the object.
|
void |
fromJson(java.lang.String json)
Generates the named style from the json string.
|
boolean |
getAddIndent()
Gets whether text is automatically indented when the text alignment in a cell
is set to equal distribution either horizontally or vertically.
|
IBorders |
getBorders()
Returns the
IBorders collection that represents the borders of a
style. |
boolean |
getBuiltIn()
Gets whether the style is a built-in style.
|
IFont |
getFont()
Returns the
IFont object that represents the font of the specified
object. |
boolean |
getFormulaHidden()
Sets whether the formula is hidden when the worksheet is protected.
|
HorizontalAlignment |
getHorizontalAlignment()
Gets the horizontal alignment for the specified object.
|
boolean |
getIncludeAlignment()
Gets whether style includes the AddIndent, HorizontalAlignment,
VerticalAlignment, WrapText, and Orientation properties.
|
boolean |
getIncludeBorder()
Gets whether the style includes the Color, ColorIndex, LineStyle, and Weight
border properties.
|
boolean |
getIncludeFont()
Gets whether the style includes the Bold, Color, ColorIndex, FontStyle,
Italic, Name, OutlineFont, Shadow, Size, Strikethrough, Subscript,
Superscript, and Underline font properties.
|
boolean |
getIncludeNumber()
Gets whether the style includes the NumberFormat property.
|
boolean |
getIncludePatterns()
Gets whether the style includes the Color, InvertIfNegative, Pattern,
PatternColor, and PatternColorIndex interior properties.
|
boolean |
getIncludeProtection()
Gets whether the style includes the FormulaHidden and Locked properties.
|
int |
getIndentLevel()
Gets the indent level for the style.
|
IInterior |
getInterior()
Returns an
IInterior object that represents the interior of the
specified object. |
boolean |
getLocked()
Gets whether 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()
Gets the format code for the object as a string in the language of the user.
|
int |
getOrientation()
Gets the text orientation.
|
boolean |
getShrinkToFit()
Gets whether the text automatically shrinks to fit in the available column
width.
|
VerticalAlignment |
getVerticalAlignment()
Gets the vertical alignment of the specified object.
|
boolean |
getWrapText()
Gets whether to wrap the text.
|
void |
setAddIndent(boolean value)
Sets whether text is automatically indented when the text alignment in a cell
is set to equal distribution either horizontally or vertically.
|
void |
setFormulaHidden(boolean value)
Gets whether the formula is hidden when the worksheet is protected.
|
void |
setHorizontalAlignment(HorizontalAlignment value)
Sets the horizontal alignment for the specified object.
|
void |
setIncludeAlignment(boolean value)
Sets whether style includes the AddIndent, HorizontalAlignment,
VerticalAlignment, WrapText, and Orientation properties.
|
void |
setIncludeBorder(boolean value)
Sets whether the style includes the Color, ColorIndex, LineStyle, and Weight
border properties.
|
void |
setIncludeFont(boolean value)
Sets whether the style includes the Bold, Color,ColorIndex, FontStyle,Italic,
Name,OutlineFont, Shadow,Size, Strikethrough,Subscript, Superscript, and
Underline font properties.
|
void |
setIncludeNumber(boolean value)
Sets whether the style includes the NumberFormat property.
|
void |
setIncludePatterns(boolean value)
Sets whether the style includes the Color, InvertIfNegative, Pattern,
PatternColor, and PatternColorIndex interior properties.
|
void |
setIncludeProtection(boolean value)
Sets whether the style includes the FormulaHidden and Locked properties.
|
void |
setIndentLevel(int value)
Sets the indent level for the style.
|
void |
setLocked(boolean value)
Sets whether the object is locked; False if the object can be modified when
the sheet is protected.
|
void |
setNumberFormat(java.lang.String value)
Sets the format code for the object as a string in the language of the user.
|
void |
setOrientation(int value)
Sets the text orientation.
|
void |
setShrinkToFit(boolean value)
Sets whether the text automatically shrinks to fit in the available column
width.
|
void |
setVerticalAlignment(VerticalAlignment value)
Sets the vertical alignment of the specified object.
|
void |
setWrapText(boolean value)
Sets whether to wrap the text.
|
java.lang.String |
toJson()
Generates a json string from the named style.
|
boolean getAddIndent()
void setAddIndent(boolean value)
IBorders getBorders()
IBorders collection that represents the borders of a
style.boolean getBuiltIn()
boolean getFormulaHidden()
void setFormulaHidden(boolean value)
HorizontalAlignment getHorizontalAlignment()
void setHorizontalAlignment(HorizontalAlignment value)
boolean getIncludeAlignment()
void setIncludeAlignment(boolean value)
boolean getIncludeBorder()
void setIncludeBorder(boolean value)
boolean getIncludeFont()
void setIncludeFont(boolean value)
boolean getIncludeNumber()
void setIncludeNumber(boolean value)
boolean getIncludePatterns()
void setIncludePatterns(boolean value)
boolean getIncludeProtection()
void setIncludeProtection(boolean value)
int getIndentLevel()
void setIndentLevel(int value)
IInterior getInterior()
IInterior object that represents the interior of the
specified object.boolean getLocked()
void setLocked(boolean value)
java.lang.String getName()
java.lang.String getNumberFormat()
void setNumberFormat(java.lang.String value)
int getOrientation()
void setOrientation(int value)
boolean getShrinkToFit()
void setShrinkToFit(boolean value)
VerticalAlignment getVerticalAlignment()
void setVerticalAlignment(VerticalAlignment value)
boolean getWrapText()
void setWrapText(boolean value)
boolean delete()
void fromJson(java.lang.String json)
json - the json stringjava.lang.String toJson()