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