PdfTextReplacer
ReplaceAllText Method (String, String, Color)
|
Replaces all target text in the page.
Namespace:
Spire.Pdf.Texts
Assembly:
Spire.Pdf (in Spire.Pdf.dll) Version: 11.3.7.0 (11.3.7.1046)
Syntax
public int ReplaceAllText(
string oldText,
string newText,
Color textColor
)
Public Function ReplaceAllText (
oldText As String,
newText As String,
textColor As Color
) As Integer
public:
int ReplaceAllText(
String^ oldText,
String^ newText,
Color textColor
)
member ReplaceAllText :
oldText : string *
newText : string *
textColor : Color -> int
Parameters
-
oldText
-
Type:
System
String
The old text
-
newText
-
Type:
System
String
The new text
-
textColor
-
Type:
System.Drawing
Color
The color of the new text.
Return Value
Type:
Int32
Number of texts replaced.
See Also