Class RevisionFilter
Selects a subset of a document's tracked changes for a bulk accept or reject. Every criterion left null matches everything, so a default filter selects all revisions.
public sealed class RevisionFilter
- Inheritance
-
RevisionFilter
- Inherited Members
Constructors
Properties
- Author
Gets or sets the required author, compared ordinally and case-sensitively, or null to match any. Word stores the author verbatim and two spellings are two authors; a culture-sensitive comparison here would also make the result depend on the machine.
- Id
Gets or sets the required revision id (w:id), or null to match any.
- NotAfter
Gets or sets the latest timestamp to match, inclusive, or null for no upper bound.
- NotBefore
Gets or sets the earliest timestamp to match, inclusive, or null for no lower bound.
- Types
Gets or sets the revision types to match, or null to match any. An empty collection matches nothing, which is the honest reading of "these types" when there are none.
Methods
- Matches(Revision)
Determines whether a revision satisfies every criterion set on this filter.
A revision whose date is absent or unparseable never matches a filter that sets NotBefore or NotAfter: the alternative is to guess a timestamp and then accept or reject content based on the guess.