OfficeIMO

API Reference

Class

WordFind

Namespace OfficeIMO.Word
Assembly OfficeIMO.Word

Represents the results of a find and replace operation within a document.

Inheritance

  • Object
  • WordFind

Constructors

Methods

FindRegex(System.Collections.Generic.IEnumerable{OfficeIMO.Word.WordParagraph} paragraphs, System.Text.RegularExpressions.Regex regex, System.Collections.Generic.List{OfficeIMO.Word.WordParagraph} destination) #

Searches the provided paragraphs for matches of the supplied regular expression and stores the paragraphs containing matches in the specified list.

Parameters

paragraphs System.Collections.Generic.IEnumerable{OfficeIMO.Word.WordParagraph} required
Paragraphs to search.
regex System.Text.RegularExpressions.Regex required
Regular expression pattern.
destination System.Collections.Generic.List{OfficeIMO.Word.WordParagraph} required
Collection to store paragraphs with matches.

Fields

public Int32 Found #

Gets or sets the number of matches found.

public Int32 Replacements #

Gets or sets the number of replacements performed.

public List<WordParagraph> Paragraphs #

Paragraphs containing matches.

public List<WordParagraph> Tables #

Table cells containing matches.

public List<WordParagraph> HeaderDefault #

Header paragraphs containing matches when using the default header.

public List<WordParagraph> HeaderEven #

Header paragraphs containing matches when using even page headers.

public List<WordParagraph> HeaderFirst #

Header paragraphs containing matches when using the first page header.

public List<WordParagraph> FooterDefault #

Footer paragraphs containing matches when using the default footer.

public List<WordParagraph> FooterEven #

Footer paragraphs containing matches when using even page footers.

public List<WordParagraph> FooterFirst #

Footer paragraphs containing matches when using the first page footer.