AboveOrBelowAverageCondition Class
Represents a condition that formats only cells with values that are above or below average.
public sealed class AboveOrBelowAverageCondition : FormatCondition
Public NotInheritable Class AboveOrBelowAverageCondition
Inherits FormatCondition
- Inheritance:
- System.ObjectAboveOrBelowAverageCondition
Remarks
AboveOrBelowAverageCondition is not supported in XLS file format.
Properties
Below
Gets or sets a value indicating whether to format cells with values below average.
Default value is false (formats cells with values above average).
Property Value
- System.Boolean
true to format cells with values below average; otherwise, false.
ConditionType
Gets the AboveOrBelowAverage value.
public override FormatConditionType ConditionType { get; }
Public Overrides ReadOnly Property ConditionType As FormatConditionType
Property Value
The AboveOrBelowAverage value.
Overrides
Equal
Gets or sets a value indicating whether to format cells with values equal to average.
Default value is false (formats cells with values exclusively above or below average).
Property Value
- System.Boolean
true to format cells with values equal to average; otherwise, false.
StandardDeviations
Gets or sets the number of standard deviations above or below average.
Only cells with values above or below average ± StandardDeviations * std are formatted.
Default value is 0.
Property Value
- System.Int32
The number of standard deviations above or below average.
Exceptions
- System.ArgumentOutOfRangeException
Value is less than zero.
See Also
Style
Gets the actual formatting which will be applied to a cell if its value satisfies this AboveOrBelowAverageCondition.
Property Value
The actual formatting which will be applied to a cell if its value satisfies this AboveOrBelowAverageCondition.
Methods
ToString()
Returns a System.String that represents this AboveOrBelowAverageCondition instance.
Returns
- System.String
A System.String that represents this AboveOrBelowAverageCondition instance.
Overrides
Remarks
This method should be used primarily for debugging purposes and should be considered volatile (format of its return value might change in future versions).
Inherited Properties
Rule | Gets the conditional formatting rule associated with this condition. (Inherited from FormatCondition) |