API Reference
Class
WordFind
Represents the results of a find and replace operation within a document.
Inheritance
- Object
- WordFind
Constructors
public WordFind() #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}
- Paragraphs to search.
- regex System.Text.RegularExpressions.Regex
- Regular expression pattern.
- destination System.Collections.Generic.List{OfficeIMO.Word.WordParagraph}
- Collection to store paragraphs with matches.
Inherited Methods
public override Boolean Equals(Object obj) #Returns:
BooleanInherited from Object
Parameters
- obj Object
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.