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
| Name | Type | Access | Description |
|---|---|---|---|
ReplaceAdjustmentAction | ReplaceAdjustment | Read/Write | The adjustment action to apply when replacing text. |
ReplaceScope | Scope | Read/Write | How many matches to replace. |
FontSizeAdjustmentAction | FontSizeAdjustment | Read/Write | Font-size strategy applied when replacement text doesn’t fit. |
IgnoreParagraphs | bool | Read/Write | Whether paragraph boundaries are ignored when matching. |
Rectangle | Rectangle? | Read/Write | Optional rectangle constraining where replacement applies. |
LeftAdjustment | double | Read/Write | Horizontal point adjustment applied at the left of replaced runs. |
RightAdjustment | double | Read/Write | Horizontal point adjustment applied at the right of replaced runs. |
AdjustmentNewLineSpacing | double | Read/Write | Vertical adjustment (extra leading) when a replacement causes a new line. |
Methods
| Signature | Description |
|---|---|
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). |