[]
Specifies whether a search matches against the whole cell content or any part of it.
Used with LookAt and LookAt to control the matching behavior of Find(object, IRange, FindOptions) and Replace(object, object, ReplaceOptions).
public enum LookAt
Public Enum LookAt
worksheet.Range["A1"].Value = "Hello World";
worksheet.Range["A2"].Value = "Hello";
FindOptions options = new FindOptions();
options.LookAt = LookAt.Whole;
IRange found = worksheet.Range["A1:A2"].Find("Hello", null, options);
// found refers to A2, because only "Hello" matches the whole cell content
| Name | Description |
|---|---|
| Part | Matches any part of the cell content. |
| Whole | Matches the whole cell content. |