Class FindReplaceOptions
Configures a find or replace operation.
Inherited Members
Namespace: DRIT.Document
Assembly: DRIT.Document.dll
Syntax
public sealed class FindReplaceOptions
Constructors
FindReplaceOptions()
Initializes options with a forward, case-sensitive literal search.
Declaration
public FindReplaceOptions()
FindReplaceOptions(FindReplaceDirection)
Initializes options with the specified match direction.
Declaration
public FindReplaceOptions(FindReplaceDirection direction)
Parameters
| Type | Name | Description |
|---|---|---|
| FindReplaceDirection | direction | The direction in which matches are visited. |
Properties
Direction
Gets or sets the direction in which matches are visited.
Declaration
public FindReplaceDirection Direction { get; set; }
Property Value
| Type | Description |
|---|---|
| FindReplaceDirection |
FindWholeWordsOnly
Gets or sets a value indicating whether matches must be whole words.
Declaration
public bool FindWholeWordsOnly { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
MatchCase
Gets or sets a value indicating whether matching is case-sensitive.
Declaration
public bool MatchCase { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
ReplacingCallback
Gets or sets the callback invoked for each match during replacement.
Declaration
public IReplacingCallback ReplacingCallback { get; set; }
Property Value
| Type | Description |
|---|---|
| IReplacingCallback |
UseRegex
Gets or sets a value indicating whether the pattern is a regular expression.
Declaration
public bool UseRegex { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |