ExactPhraseRedaction class

ExactPhraseRedaction class

Represents a text redaction that replaces exact phrase in the document’s text, case insensitive by default.

Inheritance: ExactPhraseRedactionTextRedactionRedaction

The ExactPhraseRedaction type exposes the following members:

Constructors

Constructor Description
init Initializes a new instance of ExactPhraseRedaction class in case insensitive mode.
init Initializes a new instance of ExactPhraseRedaction class.

Properties

Property Description
description Returns a string, describing the redaction and its parameters.
action_options Gets the ReplacementOptions instance, specifying type of text replacement.
ocr_connector Gets or sets the IOcrConnector implementation, required to extract text from graphic content.
search_phrase Gets the string to search and replace.
is_case_sensitive Gets a value indicating whether the search is case-sensitive or not.
is_right_to_left Gets or sets a value indicating if this text is right-to-Left or not, false by default.

Methods

Method Description
apply_to Applies the redaction to a given format instance.

Remarks

Learn more | | | |

Example

The following example demonstrates performing case-sensitive phrase search and replacement.

The following example demonstrates replacing phrase (case insensitive) with solid red rectangle.

See Also