Click or drag to resize

ConditionalFormatRuleSetTopOrBottomRanked Method

Sets a 'Top or Bottom Ranked' formatting condition to this conditional formatting rule.

Namespace:  GemBox.Spreadsheet.ConditionalFormatting
Assembly:  GemBox.Spreadsheet (in GemBox.Spreadsheet.dll) Version: 43.0.35.1020
Syntax
public TopOrBottomRankedCondition SetTopOrBottomRanked(
	bool bottom,
	int rank
)

Parameters

bottom
Type: SystemBoolean
if set to format cells with bottom ranked values; otherwise, format cells with top ranked values.
rank
Type: SystemInt32
The number of top or bottom ranked cells which are formatted.

Return Value

Type: TopOrBottomRankedCondition
A TopOrBottomRankedCondition set to this conditional formatting rule which can be used to further customize the formatting condition.
Exceptions
ExceptionCondition
ArgumentOutOfRangeExceptionParameter rank is less than or equal to zero.
See Also