TopOrBottomRankedCondition Class
Represents a condition that formats only cells with top or bottom ranked values.
public sealed class TopOrBottomRankedCondition : FormatCondition
Public NotInheritable Class TopOrBottomRankedCondition
Inherits FormatCondition
- Inheritance:
- System.ObjectTopOrBottomRankedCondition
Remarks
TopOrBottomRankedCondition is not supported when writing to XLS file format.
Properties
Bottom
Gets or sets a value indicating whether to format cells with bottom ranked values.
Default value is false (formats cells with top ranked values).
Property Value
- System.Boolean
true to format cells with bottom ranked values; otherwise, false.
ConditionType
Gets the TopOrBottomRanked value.
public override FormatConditionType ConditionType { get; }
Public Overrides ReadOnly Property ConditionType As FormatConditionType
Property Value
The TopOrBottomRanked value.
Overrides
Percent
Gets or sets a value indicating whether the Rank value is expressed as a percentage of a number of cells in the applied range.
Default value is false (the Rank value is expressed as a number of cells).
Property Value
- System.Boolean
true if the Rank value is expressed as a percentage of a number of cells in the applied range; otherwise, false.
Rank
Gets or sets the number or percentage of top or bottom ranked cells which are formatted.
Property Value
- System.Int32
The number or percentage of top or bottom ranked cells which are formatted.
Exceptions
- System.ArgumentOutOfRangeException
Value is less than or equal to zero.
Style
Gets the actual formatting which will be applied to a cell if its value satisfies this TopOrBottomRankedCondition.
Property Value
The actual formatting which will be applied to a cell if its value satisfies this TopOrBottomRankedCondition.
Methods
ToString()
Returns a System.String that represents this TopOrBottomRankedCondition instance.
Returns
- System.String
A System.String that represents this TopOrBottomRankedCondition 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) |