# WordSearchResult

Result of WordDocument.Find and WordDocument.Find: the paragraphs containing matches, grouped by document part, and the total match count.

Class 

`OfficeIMO.Word`

**Namespace**

`OfficeIMO.Word`

**Assembly**

`OfficeIMO.Word`

**Source revision**

`273d35d5ba8a` with working tree changes

**Source**

[WordSearchResult.cs:36](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Word/WordSearchResult.cs#L36)

**Modifiers**

sealed

Result of [WordDocument.Find](/api/word/officeimo-word-worddocument/) and [WordDocument.Find](/api/word/officeimo-word-worddocument/): the paragraphs containing matches, grouped by document part, and the total match count.

## Inheritance

- object
- WordSearchResult

## Usage

Explore 2 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.

### Returned or exposed by 2

- Method [WordDocument.Find](/api/word/officeimo-word-worddocument/#method-find-string-officeimo-officetextsearchoptions)
- Method [WordSection.Find](/api/word/officeimo-word-wordsection/#method-find-string-officeimo-officetextsearchoptions)

Filter members 

Show inherited

## 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 IReadOnlyList<WordRange> Ranges { get; }` [#](#property-ranges)

[WordSearchResult.cs:36](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Word/WordSearchResult.cs#L36)

Every match as an editable [WordRange](/api/word/officeimo-word-wordrange/), in document order. The ranges are located when this property is first read.

`public int MatchCount { get; internal set; }` [#](#property-matchcount)

[WordSearchResult.cs:41](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Word/WordSearchResult.cs#L41)

Gets the total number of matches.

`public IReadOnlyList<WordParagraph> Paragraphs { get; }` [#](#property-paragraphs)

[WordSearchResult.cs:46](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Word/WordSearchResult.cs#L46)

Every paragraph containing one or more matches, in the order of the body, table, header, footer, footnote, and endnote lists.

`public IReadOnlyList<WordParagraph> BodyParagraphs { get; }` [#](#property-bodyparagraphs)

[WordSearchResult.cs:59](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Word/WordSearchResult.cs#L59)

Body paragraphs containing one or more matches.

`public IReadOnlyList<WordParagraph> TableParagraphs { get; }` [#](#property-tableparagraphs)

[WordSearchResult.cs:61](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Word/WordSearchResult.cs#L61)

Table-cell paragraphs containing one or more matches.

`public IReadOnlyList<WordParagraph> DefaultHeaderParagraphs { get; }` [#](#property-defaultheaderparagraphs)

[WordSearchResult.cs:63](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Word/WordSearchResult.cs#L63)

Default-header paragraphs containing one or more matches.

`public IReadOnlyList<WordParagraph> EvenPageHeaderParagraphs { get; }` [#](#property-evenpageheaderparagraphs)

[WordSearchResult.cs:65](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Word/WordSearchResult.cs#L65)

Even-page-header paragraphs containing one or more matches.

`public IReadOnlyList<WordParagraph> FirstPageHeaderParagraphs { get; }` [#](#property-firstpageheaderparagraphs)

[WordSearchResult.cs:67](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Word/WordSearchResult.cs#L67)

First-page-header paragraphs containing one or more matches.

`public IReadOnlyList<WordParagraph> DefaultFooterParagraphs { get; }` [#](#property-defaultfooterparagraphs)

[WordSearchResult.cs:69](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Word/WordSearchResult.cs#L69)

Default-footer paragraphs containing one or more matches.

`public IReadOnlyList<WordParagraph> EvenPageFooterParagraphs { get; }` [#](#property-evenpagefooterparagraphs)

[WordSearchResult.cs:71](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Word/WordSearchResult.cs#L71)

Even-page-footer paragraphs containing one or more matches.

`public IReadOnlyList<WordParagraph> FirstPageFooterParagraphs { get; }` [#](#property-firstpagefooterparagraphs)

[WordSearchResult.cs:73](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Word/WordSearchResult.cs#L73)

First-page-footer paragraphs containing one or more matches.

`public IReadOnlyList<WordParagraph> FootnoteParagraphs { get; }` [#](#property-footnoteparagraphs)

[WordSearchResult.cs:75](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Word/WordSearchResult.cs#L75)

Ordinary footnote paragraphs containing one or more matches from a document-level search.

`public IReadOnlyList<WordParagraph> EndnoteParagraphs { get; }` [#](#property-endnoteparagraphs)

[WordSearchResult.cs:77](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Word/WordSearchResult.cs#L77)

Ordinary endnote paragraphs containing one or more matches from a document-level search.

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