# ExcelCommentFilter

Filters worksheet comments by author, text, and A1 range.

Class 

`OfficeIMO.Excel`

**Namespace**

`OfficeIMO.Excel`

**Assembly**

`OfficeIMO.Excel`

**Source revision**

`273d35d5ba8a` with working tree changes

**Source**

[ExcelSheet.Comments.cs:48](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Excel/ExcelSheet.Comments.cs#L48)

**Modifiers**

sealed

Filters worksheet comments by author, text, and A1 range.

## Inheritance

- object
- ExcelCommentFilter

## Usage

Explore 4 API references to this type

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

### Accepted by parameters 4

- Method [ExcelSheet.ClearComments](/api/excel/officeimo-excel-excelsheet/#method-clearcomments-officeimo-excel-excelcommentfilter) parameter `filter`
- Method [ExcelSheet.FindComments](/api/excel/officeimo-excel-excelsheet/#method-findcomments-officeimo-excel-excelcommentfilter) parameter `filter`
- Method [ExcelSheet.UpdateComments](/api/excel/officeimo-excel-excelsheet/#method-updatecomments-officeimo-excel-excelcommentfilter-string-string-string) parameter `filter`
- Method [ExcelSheet.UpdateCommentsRichText](/api/excel/officeimo-excel-excelsheet/#method-updatecommentsrichtext-officeimo-excel-excelcommentfilter-collections-generic-ienumerable-officeimo-excel-excelrichtextrun-string-string) parameter `filter`

Filter members 

Show inherited

## Constructors

`public ExcelCommentFilter()` [#](#constructor-ctor)

## Inherited Methods

`public virtual bool Equals(object? obj)` [#](#method-equals-object)

Inherited from object

Parameters

**obj object? required**

Returns

`bool`

`public virtual int GetHashCode()` [#](#method-gethashcode)

Inherited from object

Returns

`int`

`public Type GetType()` [#](#method-gettype)

Inherited from object

Returns

`Type`

`public virtual string? ToString()` [#](#method-tostring)

Inherited from object

Returns

`string?`

## Properties

`public string? Author { get; set; }` [#](#property-author)

[ExcelSheet.Comments.cs:48](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Excel/ExcelSheet.Comments.cs#L48)

Only match comments whose author equals this value, ignoring case.

`public string? TextContains { get; set; }` [#](#property-textcontains)

[ExcelSheet.Comments.cs:51](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Excel/ExcelSheet.Comments.cs#L51)

Only match comments whose text contains this value, ignoring case.

`public string? A1Range { get; set; }` [#](#property-a1range)

[ExcelSheet.Comments.cs:54](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Excel/ExcelSheet.Comments.cs#L54)

Only match comments attached to cells inside this A1 cell or range.

<!-- PowerForge markdown artifact sha256:E7FAF7C29FF62D0E2CBC2942BCCA63186FE37EEA50CD81BD79600C13DC1BD712 -->
