Class ReplacingArgs
Provides information about a match supplied to a replacing callback.
Inherited Members
Namespace: DRIT.Document
Assembly: DRIT.Document.dll
Syntax
public sealed class ReplacingArgs
Properties
Match
Gets the range containing the matched text.
Declaration
public ContentRange Match { get; }
Property Value
| Type | Description |
|---|---|
| ContentRange |
MatchNode
Gets the run or paragraph containing the start of the match.
Declaration
public Node MatchNode { get; }
Property Value
| Type | Description |
|---|---|
| Node |
MatchOffset
Gets the absolute offset of the match in the owning story.
Declaration
public int MatchOffset { get; }
Property Value
| Type | Description |
|---|---|
| int |
Replacement
Gets or sets the replacement text to apply when the callback returns Replace.
Declaration
public string Replacement { get; set; }
Property Value
| Type | Description |
|---|---|
| string |