StructureDocumentTag
Replace Method (Regex, TextSelection, Boolean)
|
Replaces all entries of matchString regular expression with TextRangesHolder.
Namespace:
Spire.Doc.Documents
Assembly:
Spire.Doc (in Spire.Doc.dll) Version: 13.2.3.0 (13.2.3.3046)
Syntax
public override int Replace(
Regex pattern,
TextSelection textSelection,
bool saveFormatting
)
Public Overrides Function Replace (
pattern As Regex,
textSelection As TextSelection,
saveFormatting As Boolean
) As Integer
public:
virtual int Replace(
Regex^ pattern,
TextSelection^ textSelection,
bool saveFormatting
) override
abstract Replace :
pattern : Regex *
textSelection : TextSelection *
saveFormatting : bool -> int
override Replace :
pattern : Regex *
textSelection : TextSelection *
saveFormatting : bool -> int
Parameters
-
pattern
-
Type:
System.Text.RegularExpressions
Regex
The pattern.
-
textSelection
-
Type:
Spire.Doc.Documents
TextSelection
The text selection.
-
saveFormatting
-
Type:
System
Boolean
if it specifies save source formatting, set to
true
.
Return Value
Type:
Int32
See Also