[]
Specifies the direction to search within a range when using the Find(object, IRange, FindOptions) method.
Used with SearchDirection to control whether the search proceeds forward (Next) or backward (Previous) through the range.
public enum SearchDirection
Public Enum SearchDirection
worksheet.Range["A1:A3"].Value = new object[,] {{10}, {20}, {10}};
IRange searchRange = worksheet.Range["A1:A3"];
FindOptions options = new FindOptions();
options.SearchDirection = SearchDirection.Previous;
IRange found = searchRange.Find(10, null, options);
| Name | Description |
|---|---|
| Next | Search for next matching value in range. |
| Previous | Search for previous matching value in range. |