Click or drag to resize

ConditionalFormatRuleCollectionMove Method

Moves the ConditionalFormatRule at the specified index to a new location in the ConditionalFormatRuleCollection.

Namespace:  GemBox.Spreadsheet.ConditionalFormatting
Assembly:  GemBox.Spreadsheet (in GemBox.Spreadsheet.dll) Version: 43.0.35.1020
Syntax
public void Move(
	int oldIndex,
	int newIndex
)

Parameters

oldIndex
Type: SystemInt32
The zero-based index specifying the location of the ConditionalFormatRule to be moved.
newIndex
Type: SystemInt32
The zero-based index specifying the new location of the ConditionalFormatRule.
Exceptions
ExceptionCondition
ArgumentOutOfRangeExceptionoldIndex is less than 0 or is equal to or greater than Count.
ArgumentOutOfRangeExceptionnewIndex is less than 0 or is equal to or greater than Count.
See Also