FormatCondition Class
Contents
[
Hide
]FormatCondition class
Represents conditional formatting condition.
type FormatCondition struct {
ptr unsafe.Pointer
}
Constructors
Method | Description |
---|
Methods
Method | Description |
---|---|
IsNull | Checks whether the implementation object is nullptr. |
GetFormula1_Bool_Bool | Gets the value or expression associated with this format condition. |
GetFormula2_Bool_Bool | Gets the value or expression associated with this format condition. |
GetFormula1_Bool_Bool_Int_Int | Gets the value or expression of the conditional formatting of the cell. |
GetFormula2_Bool_Bool_Int_Int | Gets the value or expression of the conditional formatting of the cell. |
SetFormulas | Sets the value or expression associated with this format condition. |
SetFormula1_String_Bool_Bool | Sets the value or expression associated with this format condition. |
SetFormula2_String_Bool_Bool | Sets the value or expression associated with this format condition. |
GetFormula1 | Gets and sets the value or expression associated with conditional formatting. |
SetFormula1_String | Gets and sets the value or expression associated with conditional formatting. |
GetFormula1_Int_Int | Gets the formula of the conditional formatting of the cell. |
GetFormula2 | Gets and sets the value or expression associated with conditional formatting. |
SetFormula2_String | Gets and sets the value or expression associated with conditional formatting. |
GetFormula2_Int_Int | Gets the formula of the conditional formatting of the cell. |
GetOperator | Gets and sets the conditional format operator type. |
SetOperator | Gets and sets the conditional format operator type. |
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 | True, no rules with lower priority may be applied over this rule, when this rule evaluates to true.Only applies for Excel 2007; |
GetPriority | The priority of this conditional formatting rule. This value is used to determine whichformat should be evaluated and rendered. Lower numeric values are higher priority thanhigher numeric values, where ‘1’ is the highest priority. |
SetPriority | The priority of this conditional formatting rule. This value is used to determine whichformat should be evaluated and rendered. Lower numeric values are higher priority thanhigher numeric values, where ‘1’ is the highest priority. |
GetStyle | Gets or setts style of conditional formatted cell ranges. |
SetStyle | Gets or setts style of conditional formatted cell ranges. |
GetType | Gets and sets whether the conditional format Type. |
SetType | Gets and sets whether the conditional format Type. |
GetIconSet | Get the conditional formatting’s “IconSet” instance.The default instance’s IconSetType is TrafficLights31.Valid only for type = IconSet. |
GetDataBar | Get the conditional formatting’s “DataBar” instance.The default instance’s color is blue.Valid only for type is DataBar. |
GetColorScale | Get the conditional formatting’s “ColorScale” instance.The default instance is a “green-yellow-red” 3ColorScale .Valid only for type = ColorScale. |
GetTop10 | Get the conditional formatting’s “Top10” instance.The default instance’s rule highlights cells whosevalues fall in the top 10 bracket.Valid only for type is Top10. |
GetAboveAverage | Get the conditional formatting’s “AboveAverage” instance.The default instance’s rule highlights cells that areabove the average for all values in the range.Valid only for type = AboveAverage. |
GetText | The text value in a “text contains” conditional formatting rule.Valid only for type = containsText, notContainsText, beginsWith and endsWith.The default value is null. |
SetText | The text value in a “text contains” conditional formatting rule.Valid only for type = containsText, notContainsText, beginsWith and endsWith.The default value is null. |
GetTimePeriod | The applicable time period in a “date occurring…” conditional formatting rule.Valid only for type = timePeriod.The default value is TimePeriodType.Today. |
SetTimePeriod | The applicable time period in a “date occurring…” conditional formatting rule.Valid only for type = timePeriod.The default value is TimePeriodType.Today. |