TextReplaceOptions

TextReplaceOptions

Overview

TextReplaceOptions is a class in Aspose.PDF FOSS for .NET.

Options for text replacement operations.

This class provides 3 methods for working with TextReplaceOptions objects in .NET programs. Available methods include: TextReplaceOptions. All public members are accessible to any .NET application after installing the Aspose.PDF FOSS for .NET package. Properties: AdjustmentNewLineSpacing, FontSizeAdjustmentAction, IgnoreParagraphs, LeftAdjustment, Rectangle, ReplaceAdjustmentAction, and 2 more.

Properties

NameTypeAccessDescription
ReplaceAdjustmentActionReplaceAdjustmentRead/WriteThe adjustment action to apply when replacing text.
ReplaceScopeScopeRead/WriteHow many matches to replace.
FontSizeAdjustmentActionFontSizeAdjustmentRead/WriteFont-size strategy applied when replacement text doesn’t fit.
IgnoreParagraphsboolRead/WriteWhether paragraph boundaries are ignored when matching.
RectangleRectangle?Read/WriteOptional rectangle constraining where replacement applies.
LeftAdjustmentdoubleRead/WriteHorizontal point adjustment applied at the left of replaced runs.
RightAdjustmentdoubleRead/WriteHorizontal point adjustment applied at the right of replaced runs.
AdjustmentNewLineSpacingdoubleRead/WriteVertical adjustment (extra leading) when a replacement causes a new line.

Methods

SignatureDescription
TextReplaceOptions()Default-constructed options (ReplaceAdjustmentAction = None).
TextReplaceOptions(adjustment: ReplaceAdjustment)Construct with a specific adjustment action.
TextReplaceOptions(scope: Scope)Construct with a replace scope (REPLACE_FIRST or REPLACE_ALL).

See Also