接口 IFormatConditions
public interface IFormatConditions
Represents the conditional formats associated with a range.
-
方法概要
修饰符和类型方法说明add
(FormatConditionType type) Adds a new conditional format.add
(FormatConditionType type, FormatConditionOperator formatConditionOperator, Object formula1, Object formula2) Adds a new conditional format.Returns a newIAboveAverage
object representing a conditionalformatting rule for the specified range.addColorScale
(ColorScaleType colorScaleType) Returns a newIColorScale
object representing a conditionalformatting rule that uses gradations in cell colors to indicate relative differences in the values of cells included in a selected range.Returns aIDataBar
object representing a data bar conditionalformatting rule for the specified range.Returns a newIIconSetCondition
object which represents an icon setconditional formatting rule for the specified range.addTop10()
Returns aITop10
object representing a conditional formatting rulefor the specified range.Returns a newIUniqueValues
object representing a conditionalformatting rule for the specified range.void
delete()
Deletes all conditional formats associated with the represented range.void
Generates the conditional formats from the json string.get
(int index) Returns the conditional format specified by the zero-based index.int
getCount()
Returns a value that represents the number of objects in the collection.toJson()
Generates a json string from the conditional formats.
-
方法详细资料
-
getCount
int getCount()Returns a value that represents the number of objects in the collection. -
get
Returns the conditional format specified by the zero-based index.- 参数:
index
- The zero-based index of the conditional format to return.- 返回:
- The specified conditional format.
-
add
Adds a new conditional format.- 参数:
type
- Specifies the type for the new conditional format.
-
add
Object add(FormatConditionType type, FormatConditionOperator formatConditionOperator, Object formula1, Object formula2) Adds a new conditional format.- 参数:
type
- Specifies the type for the new conditional format.formatConditionOperator
- Specifies the operator of the conditional format.formula1
- Specifies the first formula of the conditional format.formula2
- Specifies the second formula of the conditional format.- 返回:
- The new conditional format.
-
addAboveAverage
IAboveAverage addAboveAverage()Returns a newIAboveAverage
object representing a conditionalformatting rule for the specified range.- 返回:
- AboveAverage object
-
addColorScale
Returns a newIColorScale
object representing a conditionalformatting rule that uses gradations in cell colors to indicate relative differences in the values of cells included in a selected range.- 返回:
- ColorScale object
-
addDatabar
IDataBar addDatabar()Returns aIDataBar
object representing a data bar conditionalformatting rule for the specified range.- 返回:
- Databar object
-
addIconSetCondition
IIconSetCondition addIconSetCondition()Returns a newIIconSetCondition
object which represents an icon setconditional formatting rule for the specified range.- 返回:
- IconSetCondition object
-
addTop10
ITop10 addTop10()Returns aITop10
object representing a conditional formatting rulefor the specified range.- 返回:
- Top10 object
-
addUniqueValues
IUniqueValues addUniqueValues()Returns a newIUniqueValues
object representing a conditionalformatting rule for the specified range.- 返回:
- UniqueValues object
-
delete
void delete()Deletes all conditional formats associated with the represented range. -
fromJson
Generates the conditional formats from the json string.- 参数:
json
- the json string
-
toJson
String toJson()Generates a json string from the conditional formats.- 返回:
- the conditional formats json string
-