cellstyleobject-ag凯发旗舰厅



com.spire.xls
class cellstyleobject

java.lang.object
  extended by com.spire.xls.cellstyleobject
all implemented interfaces:
iextendedformat, ioptimizedupdate, istyle
direct known subclasses:
cellstyle

public class cellstyleobject
extends java.lang.object
implements istyle

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

cellstyleobject

public cellstyleobject(istyle style)
creates object that will contain all styles that are used by range.
parameters:
style - range from which styles must be taken.
method detail

getjustifylast

public boolean getjustifylast()
represents justify text alignment
specified by:
getjustifylast in interface iextendedformat

setjustifylast

public void setjustifylast(boolean justifylast)
sets justify text alignment

getnumberformatlocal

public java.lang.string getnumberformatlocal()
returns the format code for the object as a string in the language of the user.
specified by:
getnumberformatlocal in interface iextendedformat

setnumberformatlocal

public void setnumberformatlocal(java.lang.string numberformatlocal)
sets the format code for the object as a string in the language of the user.
specified by:
setnumberformatlocal in interface iextendedformat

getinterior

public iinterior getinterior()
description copied from interface: istyle
returns interior object for this extended format.
specified by:
getinterior in interface istyle

ismodified

public boolean ismodified()
specified by:
ismodified in interface iextendedformat

getborders

public 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).
specified by:
getborders in interface iextendedformat

getbuiltin

public boolean getbuiltin()
true if the style is a built-in style.
specified by:
getbuiltin in interface istyle

getfillpattern

public excelpatterntype getfillpattern()
gets fill pattern type.
specified by:
getfillpattern in interface iextendedformat

setfillpattern

public void setfillpattern(excelpatterntype fillpattern)
sets fill pattern type.
specified by:
setfillpattern in interface iextendedformat

getfont

public ifont getfont()
returns a font object that represents the font of the specified object. read-only.
specified by:
getfont in interface iextendedformat

getformulahidden

public boolean getformulahidden()
true if the formula will be hidden when the worksheet is protected.
specified by:
getformulahidden in interface iextendedformat

setformulahidden

public void setformulahidden(boolean formulahidden)
sets if the formula will be hidden when the worksheet is protected.
specified by:
setformulahidden in interface iextendedformat

gethorizontalalignment

public horizontalaligntype gethorizontalalignment()
returns the horizontal alignment for the specified object.
specified by:
gethorizontalalignment in interface iextendedformat

sethorizontalalignment

public void sethorizontalalignment(horizontalaligntype horizontalalignment)
sets the horizontal alignment for the specified object.
specified by:
sethorizontalalignment in interface iextendedformat

getincludealignment

public boolean getincludealignment()
true if the style includes the add indent, horizontal alignment, vertical alignment, wrap text, and orientation properties.
specified by:
getincludealignment in interface iextendedformat

setincludealignment

public void setincludealignment(boolean includealignment)
sets if the style includes the add indent, horizontal alignment, vertical alignment, wrap text, and orientation properties.
specified by:
setincludealignment in interface iextendedformat

getincludeborder

public boolean getincludeborder()
true if the style includes the color, known color, line style, and weight border properties
specified by:
getincludeborder in interface iextendedformat

setincludeborder

public void setincludeborder(boolean includeborder)
sets if the style includes the color, known color, line style, and weight border properties.

getincludefont

public 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.
specified by:
getincludefont in interface iextendedformat

setincludefont

public 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.
specified by:
setincludefont in interface iextendedformat

getincludenumberformat

public boolean getincludenumberformat()
true if the style includes the numberformat property.
specified by:
getincludenumberformat in interface iextendedformat

setincludenumberformat

public void setincludenumberformat(boolean includenumberformat)
true if the style includes the number format property.
specified by:
setincludenumberformat in interface iextendedformat

getincludepatterns

public boolean getincludepatterns()
true if the style includes the color, known color, invert if negative, pattern, pattern color, and pattern known color interior properties.
specified by:
getincludepatterns in interface iextendedformat

setincludepatterns

public 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.
specified by:
setincludepatterns in interface iextendedformat

getincludeprotection

public boolean getincludeprotection()
true if the style includes the formula hidden and locked protection properties.
specified by:
getincludeprotection in interface iextendedformat

setincludeprotection

public void setincludeprotection(boolean includeprotection)
sets if the style includes the formula hidden and locked protection properties.
specified by:
setincludeprotection in interface iextendedformat

getindentlevel

public int getindentlevel()
returns the indent level for the style.
specified by:
getindentlevel in interface iextendedformat

setindentlevel

public void setindentlevel(int indentlevel)
sets the indent level for the style.
specified by:
setindentlevel in interface iextendedformat

isinitialized

public boolean isinitialized()
indicates whether style is initialized (differs from normal style). read-only.
specified by:
isinitialized in interface istyle

getlocked

public boolean getlocked()
true if the object is locked; false if the object can be modified when the sheet is protected.
specified by:
getlocked in interface iextendedformat

setlocked

public void setlocked(boolean locked)
sets true if the object is locked; false if the object can be modified when the sheet is protected.
specified by:
setlocked in interface iextendedformat

getname

public java.lang.string getname()
returns the name of the object. read-only string.
specified by:
getname in interface istyle

getnumberformat

public java.lang.string getnumberformat()
returns the format code for the object.
specified by:
getnumberformat in interface iextendedformat

setnumberformat

public void setnumberformat(java.lang.string numberformat)
sets the format code for the object.
specified by:
setnumberformat in interface iextendedformat

getnumberformatindex

public int getnumberformatindex()
gets format index.
specified by:
getnumberformatindex in interface iextendedformat

setnumberformatindex

public void setnumberformatindex(int numberformatindex)
sets format index.
specified by:
setnumberformatindex in interface iextendedformat

getnumberformatsettings

public inumberformat getnumberformatsettings()
returns object that describes number format. read-only.
specified by:
getnumberformatsettings in interface iextendedformat

getrotation

public int getrotation()
the text orientation. can be an integer value from 1 to 180 degrees
specified by:
getrotation in interface iextendedformat

setrotation

public void setrotation(int rotation)
the text orientation. can be an integer value from 1 to 180 degrees
specified by:
setrotation in interface iextendedformat

getshrinktofit

public boolean getshrinktofit()
true if text automatically shrinks to fit in the available column width.
specified by:
getshrinktofit in interface iextendedformat

setshrinktofit

public void setshrinktofit(boolean shrinktofit)
true if text automatically shrinks to fit in the available column width.
specified by:
setshrinktofit in interface iextendedformat

getverticalalignment

public verticalaligntype getverticalalignment()
returns the vertical alignment of the specified object.
specified by:
getverticalalignment in interface iextendedformat

setverticalalignment

public void setverticalalignment(verticalaligntype verticalalignment)
sets the vertical alignment of the specified object.
specified by:
setverticalalignment in interface iextendedformat

getwraptext

public boolean getwraptext()
true if microsoft excel wraps the text in the object.
specified by:
getwraptext in interface iextendedformat

setwraptext

public void setwraptext(boolean wraptext)
true if microsoft excel wraps the text in the object.
specified by:
setwraptext in interface iextendedformat

getreadingorder

public readingordertype getreadingorder()
returns the reading order for the specified object.
specified by:
getreadingorder in interface iextendedformat

setreadingorder

public void setreadingorder(readingordertype readingorder)
sets the reading order for the specified object.
specified by:
setreadingorder in interface iextendedformat

isfirstsymbolapostrophe

public boolean isfirstsymbolapostrophe()
if true then first symbol in cell is apostrophe.
specified by:
isfirstsymbolapostrophe in interface iextendedformat

isfirstsymbolapostrophe

public void isfirstsymbolapostrophe(boolean isfirstsymbolapostrophe)
if true then first symbol in cell is apostrophe.
specified by:
isfirstsymbolapostrophe in interface iextendedformat

getpatternknowncolor

public excelcolors getpatternknowncolor()
returns the excel color of the interior.
specified by:
getpatternknowncolor in interface iextendedformat

setpatternknowncolor

public void setpatternknowncolor(excelcolors patternknowncolor)
sets the excel color of the interior.
specified by:
setpatternknowncolor in interface iextendedformat

getpatterncolor

public java.awt.color getpatterncolor()
returns the color of the interior pattern.
specified by:
getpatterncolor in interface iextendedformat

setpatterncolor

public void setpatterncolor(java.awt.color patterncolor)
sets the color of the interior pattern.
specified by:
setpatterncolor in interface iextendedformat

getknowncolor

public excelcolors getknowncolor()
gets the cell shading excel color.
specified by:
getknowncolor in interface iextendedformat

setknowncolor

public void setknowncolor(excelcolors knowncolor)
sets the cell shading excel color.
specified by:
setknowncolor in interface iextendedformat

setcolor

public void setcolor(java.awt.color color)
sets the cell shading color.
specified by:
setcolor in interface iextendedformat

getparent

public java.lang.object getparent()

beginupdate

public void beginupdate()
this method should be called before several updates to the object will take place.
specified by:
beginupdate in interface ioptimizedupdate

endupdate

public void endupdate()
this method should be called after several updates to the object took place.
specified by:
endupdate in interface ioptimizedupdate


网站地图