xlsconditionalformat-ag凯发旗舰厅



com.spire.xls.core.spreadsheet
class xlsconditionalformat

java.lang.object
  extended by com.spire.xls.core.spreadsheet.xlsobject
      extended by com.spire.xls.core.spreadsheet.xlsconditionalformat
all implemented interfaces:
iconditionalformat
direct known subclasses:
conditionalformat

public class xlsconditionalformat
extends xlsobject
implements iconditionalformat

contains a condition and the formatting for cells.


constructor summary
xlsconditionalformat(java.lang.object parent)
          creates conditionalformat and set its reservedhandle and parent properties to speicified values.
xlsconditionalformat(java.lang.object parent,  fc)
           
 
method summary
 java.lang.object deepclone(java.lang.object parent)
          creates a new object that is a copy of the current instance.
 boolean equals(java.lang.object obj)
          a hash code for the current object without taking cell list into account.
 average getaverage()
          get the conditional formatting's "average" instance.
 java.awt.color getbackcolor()
          get pattern background color.
 ocolor getbackcolorobject()
          conditional format background color.
 excelcolors getbackknowncolor()
          pattern background excel color.
 java.awt.color getbottombordercolor()
          color of the bottom line.
 ocolor getbottombordercolorobject()
          conditional format bottom border color.
 excelcolors getbottomborderknowncolor()
          excel color of the bottom line.
 linestyletype getbottomborderstyle()
          bottom border line style.
 java.awt.color getcolor()
          pattern foreground color.
 colorscale getcolorscale()
          get the conditional formatting's "colorscale" instance.
 databar getdatabar()
          returns data bar settings.
 int getdxfid()
           
 excelpatterntype getfillpattern()
          xlsfill pattern type.
 java.lang.string getfirstformula()
          first formula.
 java.awt.color getfontcolor()
          get font color.
 com.spire.ms.system.drawing.color getfontcolorinner()
          font color.
 ocolor getfontcolorobject()
          conditional format font color.
 excelcolors getfontknowncolor()
          font excel color.
 conditionalformattype getformattype()
          conditional format type.
 iconset geticonset()
          returns iconset settings.
 excelcolors getknowncolor()
          pattern foreground excel color.
 java.awt.color getleftbordercolor()
          color of the left line.
 ocolor getleftbordercolorobject()
          conditional format left border color.
 excelcolors getleftborderknowncolor()
          excel color of the left line.
 linestyletype getleftborderstyle()
          left border line style.
 java.lang.string getnumberformat()
           
 ocolor getocolor()
          conditional format color.
 comparisonoperatortype getoperator()
          type of the comparison operator.
 int getpriority()
          priority.
 java.awt.color getrightbordercolor()
          color of the right line.
 ocolor getrightbordercolorobject()
          conditional format right border color.
 excelcolors getrightborderknowncolor()
          color of the right line.
 linestyletype getrightborderstyle()
          right border line style.
 java.lang.string getsecondformula()
          second formula.
 boolean getstopiftrue()
          true, no rules with lower priority may be applied over this rule, when this rule evaluates to true.
 java.awt.color gettopbordercolor()
          color of the top line.
 ocolor gettopbordercolorobject()
          conditional format top border color.
 excelcolors gettopborderknowncolor()
          excel color of the top line.
 linestyletype gettopborderstyle()
          top border line style.
 topbottom gettopbottom()
          get the conditional formatting's "topbottom" instance.
 fontunderlinetype getunderline()
          underline type.
 int hashcode()
          serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table.
 boolean isbold()
          indicates whether font is bold.
 void isbold(boolean value)
          indicates whether font is bold.
 boolean isborderformatpresent()
          indicates whether contains border formatting.
 void isborderformatpresent(boolean value)
          indicates whether contains border formatting.
 boolean isfontformatpresent()
          indicates whether contains font formatting.
 void isfontformatpresent(boolean value)
          indicates whether contains font formatting.
 boolean isitalic()
          indicates whether font is italic.
 void isitalic(boolean value)
          indicates whether font is italic.
 boolean isnumberformatpresent()
           
 boolean ispatternformatpresent()
          indicates whether contains pattern formatting.
 void ispatternformatpresent(boolean value)
          indicates whether contains pattern formatting.
 boolean isstrikethrough()
          indicates whether font is striked through.
 void isstrikethrough(boolean value)
          indicates whether font is striked through.
 boolean issubscript()
          indicates whether font is subscript.
 void issubscript(boolean value)
          indicates whether font is subscript.
 boolean issuperscript()
          indicates whether font is superscript.
 void issuperscript(boolean value)
          indicates whether font is superscript.
 java.lang.string makeformula()
           
 java.lang.string makeformula(double para)
           
 java.lang.string makeformula(java.lang.string para)
           
 void setbackcolor(java.awt.color value)
          set pattern background color.
 void setbackknowncolor(excelcolors value)
          pattern background excel color.
 void setbottombordercolor(java.awt.color value)
          color of the bottom line.
 void setbottomborderknowncolor(excelcolors value)
          excel color of the bottom line.
 void setbottomborderstyle(linestyletype value)
          bottom border line style.
 void setcolor(java.awt.color value)
          pattern foreground color.
 void setdxfid(int value)
           
 void setfillpattern(excelpatterntype value)
          xlsfill pattern type.
 void setfirstformula(java.lang.string value)
          first formula.
 void setfontcolor(java.awt.color value)
          set font color.
 void setfontknowncolor(excelcolors value)
          font excel color.
 void setformattype(conditionalformattype value)
          conditional format type.
 void setknowncolor(excelcolors value)
          pattern foreground excel color.
 void setleftbordercolor(com.spire.ms.system.drawing.color value)
          color of the left line.
 void setleftbordercolor(java.awt.color value)
          set color of the left line.
 void setleftborderknowncolor(excelcolors value)
          excel color of the left line.
 void setleftborderstyle(linestyletype value)
          left border line style.
 void setnumberformat(java.lang.string value)
           
 void setoperator(comparisonoperatortype value)
          type of the comparison operator.
 void setpriority(int value)
          priority.
 void setrightbordercolor(java.awt.color value)
          color of the right line.
 void setrightborderknowncolor(excelcolors value)
          color of the right line.
 void setrightborderstyle(linestyletype value)
          right border line style.
 void setsecondformula(java.lang.string value)
          second formula.
 void setstopiftrue(boolean value)
          true, no rules with lower priority may be applied over this rule, when this rule evaluates to true.
 void settimeperiod(timeperiodtype timeperiod)
           
 void settopbordercolor(java.awt.color value)
          color of the top line.
 void settopborderknowncolor(excelcolors value)
          excel color of the top line.
 void settopborderstyle(linestyletype value)
          top border line style.
 void setunderline(fontunderlinetype value)
          underline type.
 
methods inherited from class com.spire.xls.core.spreadsheet.xlsobject
dispose
 
methods inherited from interface com.spire.xls.core.iconditionalformat
getbackcolorinner, setbackcolor, setfontcolor
 
constructor detail

xlsconditionalformat

public xlsconditionalformat(java.lang.object parent)
creates conditionalformat and set its reservedhandle and parent properties to speicified values.
parameters:
parent - parent object for the conditionalformat.

xlsconditionalformat

public xlsconditionalformat(java.lang.object parent,
                             fc)
method detail

getpriority

public int getpriority()
description copied from interface: iconditionalformat
priority.
specified by:
getpriority in interface iconditionalformat

setpriority

public void setpriority(int value)
description copied from interface: iconditionalformat
priority.
specified by:
setpriority in interface iconditionalformat

getstopiftrue

public boolean getstopiftrue()
true, no rules with lower priority may be applied over this rule, when this rule evaluates to true. only applies for excel 2007;

setstopiftrue

public void setstopiftrue(boolean value)
true, no rules with lower priority may be applied over this rule, when this rule evaluates to true. only applies for excel 2007;

getdxfid

public int getdxfid()

setdxfid

public void setdxfid(int value)

getaverage

public average getaverage()
get the conditional formatting's "average" instance. the default instance's rule highlights cells that are above the average for all values in the range. valid only for type = average.
returns:

gettopbottom

public topbottom gettopbottom()
get the conditional formatting's "topbottom" instance. the default instance's rule highlights cells whose values fall in the top 10 bracket. valid only for type = topbottom.
returns:

getleftborderknowncolor

public excelcolors getleftborderknowncolor()
excel color of the left line.
specified by:
getleftborderknowncolor in interface iconditionalformat

setleftborderknowncolor

public void setleftborderknowncolor(excelcolors value)
excel color of the left line.
specified by:
setleftborderknowncolor in interface iconditionalformat

getleftbordercolor

public java.awt.color getleftbordercolor()
color of the left line.
specified by:
getleftbordercolor in interface iconditionalformat

setleftbordercolor

public void setleftbordercolor(com.spire.ms.system.drawing.color value)
color of the left line.

setleftbordercolor

public void setleftbordercolor(java.awt.color value)
set color of the left line.
specified by:
setleftbordercolor in interface iconditionalformat
parameters:
value -

getleftborderstyle

public linestyletype getleftborderstyle()
left border line style.
specified by:
getleftborderstyle in interface iconditionalformat

setleftborderstyle

public void setleftborderstyle(linestyletype value)
left border line style.
specified by:
setleftborderstyle in interface iconditionalformat

getrightborderknowncolor

public excelcolors getrightborderknowncolor()
color of the right line.
specified by:
getrightborderknowncolor in interface iconditionalformat

setrightborderknowncolor

public void setrightborderknowncolor(excelcolors value)
color of the right line.
specified by:
setrightborderknowncolor in interface iconditionalformat

getrightbordercolor

public java.awt.color getrightbordercolor()
color of the right line.
specified by:
getrightbordercolor in interface iconditionalformat
returns:
color of the right line.

setrightbordercolor

public void setrightbordercolor(java.awt.color value)
color of the right line.
specified by:
setrightbordercolor in interface iconditionalformat

getrightborderstyle

public linestyletype getrightborderstyle()
right border line style.
specified by:
getrightborderstyle in interface iconditionalformat

setrightborderstyle

public void setrightborderstyle(linestyletype value)
right border line style.
specified by:
setrightborderstyle in interface iconditionalformat

gettopborderknowncolor

public excelcolors gettopborderknowncolor()
excel color of the top line.
specified by:
gettopborderknowncolor in interface iconditionalformat

settopborderknowncolor

public void settopborderknowncolor(excelcolors value)
excel color of the top line.
specified by:
settopborderknowncolor in interface iconditionalformat

gettopbordercolor

public java.awt.color gettopbordercolor()
color of the top line.
specified by:
gettopbordercolor in interface iconditionalformat
returns:
color of the top line.

settopbordercolor

public void settopbordercolor(java.awt.color value)
color of the top line.
specified by:
settopbordercolor in interface iconditionalformat
parameters:
value - color of the top line.

gettopborderstyle

public linestyletype gettopborderstyle()
top border line style.
specified by:
gettopborderstyle in interface iconditionalformat

settopborderstyle

public void settopborderstyle(linestyletype value)
top border line style.
specified by:
settopborderstyle in interface iconditionalformat

getbottomborderknowncolor

public excelcolors getbottomborderknowncolor()
excel color of the bottom line.
specified by:
getbottomborderknowncolor in interface iconditionalformat

setbottomborderknowncolor

public void setbottomborderknowncolor(excelcolors value)
excel color of the bottom line.
specified by:
setbottomborderknowncolor in interface iconditionalformat

getbottombordercolor

public java.awt.color getbottombordercolor()
color of the bottom line.
specified by:
getbottombordercolor in interface iconditionalformat
returns:
color of the bottom line.

setbottombordercolor

public void setbottombordercolor(java.awt.color value)
color of the bottom line.
specified by:
setbottombordercolor in interface iconditionalformat

getbottomborderstyle

public linestyletype getbottomborderstyle()
bottom border line style.
specified by:
getbottomborderstyle in interface iconditionalformat
returns:

setbottomborderstyle

public void setbottomborderstyle(linestyletype value)
bottom border line style.
specified by:
setbottomborderstyle in interface iconditionalformat

getfirstformula

public java.lang.string getfirstformula()
first formula.
specified by:
getfirstformula in interface iconditionalformat
returns:

setfirstformula

public void setfirstformula(java.lang.string value)
first formula.
specified by:
setfirstformula in interface iconditionalformat

settimeperiod

public void settimeperiod(timeperiodtype timeperiod)

getsecondformula

public java.lang.string getsecondformula()
second formula.
specified by:
getsecondformula in interface iconditionalformat

setsecondformula

public void setsecondformula(java.lang.string value)
second formula.
specified by:
setsecondformula in interface iconditionalformat

getformattype

public conditionalformattype getformattype()
conditional format type.
specified by:
getformattype in interface iconditionalformat
returns:

setformattype

public void setformattype(conditionalformattype value)
conditional format type.
specified by:
setformattype in interface iconditionalformat

getoperator

public comparisonoperatortype getoperator()
type of the comparison operator.
specified by:
getoperator in interface iconditionalformat
returns:

setoperator

public void setoperator(comparisonoperatortype value)
type of the comparison operator.
specified by:
setoperator in interface iconditionalformat

isbold

public boolean isbold()
indicates whether font is bold.
specified by:
isbold in interface iconditionalformat

isbold

public void isbold(boolean value)
indicates whether font is bold.
specified by:
isbold in interface iconditionalformat

isitalic

public boolean isitalic()
indicates whether font is italic.
specified by:
isitalic in interface iconditionalformat

isitalic

public void isitalic(boolean value)
indicates whether font is italic.
specified by:
isitalic in interface iconditionalformat

getfontknowncolor

public excelcolors getfontknowncolor()
font excel color.
specified by:
getfontknowncolor in interface iconditionalformat

setfontknowncolor

public void setfontknowncolor(excelcolors value)
font excel color.
specified by:
setfontknowncolor in interface iconditionalformat

getfontcolorinner

public com.spire.ms.system.drawing.color getfontcolorinner()
font color.
specified by:
getfontcolorinner in interface iconditionalformat

getfontcolor

public java.awt.color getfontcolor()
get font color.
specified by:
getfontcolor in interface iconditionalformat
returns:

setfontcolor

public void setfontcolor(java.awt.color value)
set font color.
specified by:
setfontcolor in interface iconditionalformat
parameters:
value -

getunderline

public fontunderlinetype getunderline()
underline type.
specified by:
getunderline in interface iconditionalformat

setunderline

public void setunderline(fontunderlinetype value)
underline type.

isstrikethrough

public boolean isstrikethrough()
indicates whether font is striked through.
specified by:
isstrikethrough in interface iconditionalformat

isstrikethrough

public void isstrikethrough(boolean value)
indicates whether font is striked through.
specified by:
isstrikethrough in interface iconditionalformat

issuperscript

public boolean issuperscript()
indicates whether font is superscript.
specified by:
issuperscript in interface iconditionalformat

issuperscript

public void issuperscript(boolean value)
indicates whether font is superscript.
specified by:
issuperscript in interface iconditionalformat

issubscript

public boolean issubscript()
indicates whether font is subscript.
specified by:
issubscript in interface iconditionalformat

issubscript

public void issubscript(boolean value)
indicates whether font is subscript.
specified by:
issubscript in interface iconditionalformat

getknowncolor

public excelcolors getknowncolor()
pattern foreground excel color.
specified by:
getknowncolor in interface iconditionalformat

setknowncolor

public void setknowncolor(excelcolors value)
pattern foreground excel color.
specified by:
setknowncolor in interface iconditionalformat

getcolor

public java.awt.color getcolor()
pattern foreground color.
specified by:
getcolor in interface iconditionalformat

setcolor

public void setcolor(java.awt.color value)
pattern foreground color.
specified by:
setcolor in interface iconditionalformat

getbackknowncolor

public excelcolors getbackknowncolor()
pattern background excel color.
specified by:
getbackknowncolor in interface iconditionalformat

setbackknowncolor

public void setbackknowncolor(excelcolors value)
pattern background excel color.
specified by:
setbackknowncolor in interface iconditionalformat

getbackcolor

public java.awt.color getbackcolor()
get pattern background color.
specified by:
getbackcolor in interface iconditionalformat
returns:

setbackcolor

public void setbackcolor(java.awt.color value)
set pattern background color.
specified by:
setbackcolor in interface iconditionalformat
parameters:
value -

getfillpattern

public excelpatterntype getfillpattern()
xlsfill pattern type.
specified by:
getfillpattern in interface iconditionalformat

setfillpattern

public void setfillpattern(excelpatterntype value)
xlsfill pattern type.
specified by:
setfillpattern in interface iconditionalformat

isfontformatpresent

public boolean isfontformatpresent()
indicates whether contains font formatting.

isfontformatpresent

public void isfontformatpresent(boolean value)
indicates whether contains font formatting.

isborderformatpresent

public boolean isborderformatpresent()
indicates whether contains border formatting.

isborderformatpresent

public void isborderformatpresent(boolean value)
indicates whether contains border formatting.

ispatternformatpresent

public boolean ispatternformatpresent()
indicates whether contains pattern formatting.

ispatternformatpresent

public void ispatternformatpresent(boolean value)
indicates whether contains pattern formatting.

getdatabar

public databar getdatabar()
description copied from interface: iconditionalformat
returns data bar settings. valid only if format type is set to data bar. read-only.
specified by:
getdatabar in interface iconditionalformat

geticonset

public iconset geticonset()
returns iconset settings. valid only if formattype is set to iconset. read-only.
specified by:
geticonset in interface iconditionalformat

getcolorscale

public colorscale getcolorscale()
get the conditional formatting's "colorscale" instance. the default instance is a "green-red" 2colorscale . valid only for type = colorscale.
specified by:
getcolorscale in interface iconditionalformat
returns:
colorscale instance

getnumberformat

public java.lang.string getnumberformat()

setnumberformat

public void setnumberformat(java.lang.string value)

isnumberformatpresent

public boolean isnumberformatpresent()

hashcode

public int hashcode()
serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table.
overrides:
hashcode in class java.lang.object
returns:
a hash code for the current object.

equals

public boolean equals(java.lang.object obj)
a hash code for the current object without taking cell list into account.
overrides:
equals in class java.lang.object
parameters:
obj - the object to compare with the current object.
returns:

deepclone

public java.lang.object deepclone(java.lang.object parent)
creates a new object that is a copy of the current instance.
parameters:
parent - parent object for a copy of this instance.
returns:
a new object that is a copy of this instance.

getocolor

public ocolor getocolor()
conditional format color. read-only.

getbackcolorobject

public ocolor getbackcolorobject()
conditional format background color. read-only.

gettopbordercolorobject

public ocolor gettopbordercolorobject()
conditional format top border color. read-only.

getbottombordercolorobject

public ocolor getbottombordercolorobject()
conditional format bottom border color. read-only.

getleftbordercolorobject

public ocolor getleftbordercolorobject()
conditional format left border color. read-only.

getrightbordercolorobject

public ocolor getrightbordercolorobject()
conditional format right border color. read-only.

getfontcolorobject

public ocolor getfontcolorobject()
conditional format font color. read-only.

makeformula

public java.lang.string makeformula()

makeformula

public java.lang.string makeformula(java.lang.string para)

makeformula

public java.lang.string makeformula(double para)


网站地图