FormatConditionModel
概述
FormatConditionModel 是 Aspose.Cells FOSS 中用于 Java 的类。
表示在 Excel 条件格式中使用的格式条件模型。
此类提供 52 个方法,用于在 Java 程序中处理 FormatConditionModel 对象。可用的方法包括:getAbove、getBarColor、getBarLength、getColorScaleCount、getDirection、getDuplicate、getFormula1、getFormula2、getIconSetType、getMaxColor、getMidColor、getMinColor,以及另外 40 个方法。安装 Aspose.Cells FOSS for Java 包后,所有导出的成员均可供任何 Java 应用程序访问。属性有:above、barColor、barLength、colorScaleCount、direction、duplicate,以及另外 20 项。
描述
FormatConditionModel 是 Aspose.Cells FOSS 库中用于 Java 的类,公开了 52 个方法和 26 个属性供编程使用。
核心功能包括:formatconditiontype;operatortype;string。这些操作使开发者能够将 formatconditionmodel 功能直接集成到 Java 应用程序中。
该类还提供 type 属性(返回类型),operator 属性(返回运算符),以及 formula1 属性(返回公式 1)。
属性
| 名称 | 类型 | 访问 | 描述 |
|---|---|---|---|
type | FormatConditionType | 读取 | 返回类型。 |
operator | OperatorType | 读取 | 返回运算符。 |
formula1 | String | 读取 | 返回公式 1。 |
formula2 | String | 读取 | 返回公式 2。 |
timePeriod | String | 读取 | 返回时间段。 |
duplicate | boolean | 读取 | 返回重复项。 |
top | boolean | 读取 | 返回顶部。 |
percent | boolean | 读取 | 返回百分比。 |
rank | int | 读取 | 返回排名。 |
above | boolean | 读取 | 返回上述。 |
standardDeviation | int | 读取 | 返回标准差。 |
colorScaleCount | int | 读取 | 返回颜色刻度计数。 |
minColor | ColorValue | 读取 | 返回最小颜色。 |
midColor | ColorValue | 读取 | 返回中间颜色。 |
maxColor | ColorValue | 读取 | 返回最大颜色。 |
barColor | ColorValue | 读取 | 返回条形颜色。 |
negativeBarColor | ColorValue | 读取 | 返回负条颜色。 |
showBorder | boolean | 读取 | 返回显示边框。 |
direction | String | 读取 | 返回方向。 |
barLength | String | 读取 | 返回条的长度。 |
iconSetType | String | 读取 | 返回图标集类型。 |
reverseIcons | boolean | 读取 | 返回反向图标。 |
showIconOnly | boolean | 读取 | 仅返回显示图标。 |
priority | int | 读取 | 返回优先级。 |
stopIfTrue | boolean | 读取 | 如果为 true,则返回 stop。 |
style | StyleValue | 读取 | 返回样式。 |
方法
| 签名 | 描述 |
|---|---|
getType() → FormatConditionType | 返回类型。 |
setType(type: FormatConditionType) | 设置类型。 |
getOperator() → OperatorType | 返回运算符。 |
setOperator(operator: OperatorType) | 设置运算符。 |
getFormula1() → String | 返回公式 1。 |
setFormula1(formula1: String) | 设置公式 1。 |
getFormula2() → String | 返回公式 2。 |
setFormula2(formula2: String) | Sets the formula 2. |
getTimePeriod() → String | 返回时间段。 |
setTimePeriod(timePeriod: String) | 设置时间段。 |
getDuplicate() → boolean | 返回重复项。 |
setDuplicate(duplicate: boolean) | 设置重复项。 |
getTop() → boolean | 返回顶部。 |
setTop(top: boolean) | 设置顶部。 |
getPercent() → boolean | 返回百分比。 |
setPercent(percent: boolean) | 设置百分比。 |
getRank() → int | 返回排名。 |
setRank(rank: int) | 设置等级。 |
getAbove() → boolean | 返回上述。 |
setAbove(above: boolean) | 设置上述内容。 |
getStandardDeviation() → int | 返回标准差。 |
setStandardDeviation(standardDeviation: int) | 设置标准差。 |
getColorScaleCount() → int | 返回颜色刻度计数。 |
setColorScaleCount(colorScaleCount: int) | 设置颜色刻度计数。 |
getMinColor() → ColorValue | 返回最小颜色。 |
setMinColor(minColor: ColorValue) | 设置最小颜色。 |
getMidColor() → ColorValue | 返回中间颜色。 |
setMidColor(midColor: ColorValue) | 设置中间颜色。 |
getMaxColor() → ColorValue | 返回最大颜色。 |
setMaxColor(maxColor: ColorValue) | 设置最大颜色。 |
getBarColor() → ColorValue | 返回条形颜色。 |
setBarColor(barColor: ColorValue) | 设置条形颜色。 |
getNegativeBarColor() → ColorValue | 返回负条形颜色。 |
setNegativeBarColor(negativeBarColor: ColorValue) | 设置负条形颜色。 |
getShowBorder() → boolean | 返回显示边框。 |
setShowBorder(showBorder: boolean) | 设置显示边框。 |
getDirection() → String | 返回方向。 |
setDirection(direction: String) | 设置方向。 |
getBarLength() → String | 返回条形长度。 |
setBarLength(barLength: String) | 设置条形的长度。 |
getIconSetType() → String | 返回图标集类型。 |
setIconSetType(iconSetType: String) | 设置图标集类型。 |
getReverseIcons() → boolean | 返回反向图标。 |
setReverseIcons(reverseIcons: boolean) | 设置反向图标。 |
getShowIconOnly() → boolean | 仅返回显示图标。 |
setShowIconOnly(showIconOnly: boolean) | 仅设置显示图标。 |
getPriority() → int | 返回优先级。 |
setPriority(priority: int) | 设置优先级。 |
getStopIfTrue() → boolean | 如果为 true,则返回 stop。 |
setStopIfTrue(stopIfTrue: boolean) | 如果为 true,则设置停止。 |
getStyle() → StyleValue | 返回 style。 |
setStyle(style: StyleValue) | 设置样式。 |