|
|||||||||
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 iextendedformat
public void setjustifylast(boolean justifylast)
public java.lang.string getnumberformatlocal()
getnumberformatlocal
in interface iextendedformat
public void setnumberformatlocal(java.lang.string numberformatlocal)
setnumberformatlocal
in interface iextendedformat
public iinterior getinterior()
istyle
getinterior
in interface istyle
public boolean ismodified()
ismodified
in interface iextendedformat
public iborders getborders()
getborders
in interface iextendedformat
public boolean getbuiltin()
getbuiltin
in interface istyle
public excelpatterntype getfillpattern()
getfillpattern
in interface iextendedformat
public void setfillpattern(excelpatterntype fillpattern)
setfillpattern
in interface iextendedformat
public ifont getfont()
getfont
in interface iextendedformat
public boolean getformulahidden()
getformulahidden
in interface iextendedformat
public void setformulahidden(boolean formulahidden)
setformulahidden
in interface iextendedformat
public horizontalaligntype gethorizontalalignment()
gethorizontalalignment
in interface iextendedformat
public void sethorizontalalignment(horizontalaligntype horizontalalignment)
sethorizontalalignment
in interface iextendedformat
public boolean getincludealignment()
getincludealignment
in interface iextendedformat
public void setincludealignment(boolean includealignment)
setincludealignment
in interface iextendedformat
public boolean getincludeborder()
getincludeborder
in interface iextendedformat
public void setincludeborder(boolean includeborder)
public boolean getincludefont()
getincludefont
in interface iextendedformat
public void setincludefont(boolean includefont)
setincludefont
in interface iextendedformat
public boolean getincludenumberformat()
getincludenumberformat
in interface iextendedformat
public void setincludenumberformat(boolean includenumberformat)
setincludenumberformat
in interface iextendedformat
public boolean getincludepatterns()
getincludepatterns
in interface iextendedformat
public void setincludepatterns(boolean includepatterns)
setincludepatterns
in interface iextendedformat
public boolean getincludeprotection()
getincludeprotection
in interface iextendedformat
public void setincludeprotection(boolean includeprotection)
setincludeprotection
in interface iextendedformat
public int getindentlevel()
getindentlevel
in interface iextendedformat
public void setindentlevel(int indentlevel)
setindentlevel
in interface iextendedformat
public boolean isinitialized()
isinitialized
in interface istyle
public boolean getlocked()
getlocked
in interface iextendedformat
public void setlocked(boolean locked)
setlocked
in interface iextendedformat
public java.lang.string getname()
getname
in interface istyle
public java.lang.string getnumberformat()
getnumberformat
in interface iextendedformat
public void setnumberformat(java.lang.string numberformat)
setnumberformat
in interface iextendedformat
public int getnumberformatindex()
getnumberformatindex
in interface iextendedformat
public void setnumberformatindex(int numberformatindex)
setnumberformatindex
in interface iextendedformat
public inumberformat getnumberformatsettings()
getnumberformatsettings
in interface iextendedformat
public int getrotation()
getrotation
in interface iextendedformat
public void setrotation(int rotation)
setrotation
in interface iextendedformat
public boolean getshrinktofit()
getshrinktofit
in interface iextendedformat
public void setshrinktofit(boolean shrinktofit)
setshrinktofit
in interface iextendedformat
public verticalaligntype getverticalalignment()
getverticalalignment
in interface iextendedformat
public void setverticalalignment(verticalaligntype verticalalignment)
setverticalalignment
in interface iextendedformat
public boolean getwraptext()
getwraptext
in interface iextendedformat
public void setwraptext(boolean wraptext)
setwraptext
in interface iextendedformat
public readingordertype getreadingorder()
getreadingorder
in interface iextendedformat
public void setreadingorder(readingordertype readingorder)
setreadingorder
in interface iextendedformat
public boolean isfirstsymbolapostrophe()
isfirstsymbolapostrophe
in interface iextendedformat
public void isfirstsymbolapostrophe(boolean isfirstsymbolapostrophe)
isfirstsymbolapostrophe
in interface iextendedformat
public excelcolors getpatternknowncolor()
getpatternknowncolor
in interface iextendedformat
public void setpatternknowncolor(excelcolors patternknowncolor)
setpatternknowncolor
in interface iextendedformat
public java.awt.color getpatterncolor()
getpatterncolor
in interface iextendedformat
public void setpatterncolor(java.awt.color patterncolor)
setpatterncolor
in interface iextendedformat
public excelcolors getknowncolor()
getknowncolor
in interface iextendedformat
public void setknowncolor(excelcolors knowncolor)
setknowncolor
in interface iextendedformat
public void setcolor(java.awt.color color)
setcolor
in interface iextendedformat
public java.lang.object getparent()
public void beginupdate()
beginupdate
in interface ioptimizedupdate
public void endupdate()
endupdate
in interface ioptimizedupdate
|
|||||||||
prev class next class | frames no frames | ||||||||
summary: nested | field | constr | method | detail: field | constr | method |