Document Solutions for PDF
GrapeCity.Documents.Pdf Assembly / GrapeCity.Documents.Pdf Namespace / GcPdfDocument Class / ReplaceText Method
The text to search for.
The replacement text.
The search scope.
The font to use on newText, if a null reference (Nothing in Visual Basic) the current font will be used.
The font size to use on newText, if a null reference (Nothing in Visual Basic) the current font size will be used.

In This Topic
    ReplaceText Method (GcPdfDocument)
    In This Topic
    Replaces a specified text on all pages of the current document.

    Note that the results may be affected by the current value of the RecognitionAlgorithm property.

    Syntax
    'Declaration
     
    Public Sub ReplaceText( _
       ByVal findTextParams As FindTextParams, _
       ByVal newText As System.String, _
       Optional ByVal searchRange As OutputRange, _
       Optional ByVal font As Font, _
       Optional ByVal fontSize As System.Nullable(Of Single) _
    ) 
    public void ReplaceText( 
       FindTextParams findTextParams,
       System.string newText,
       OutputRange searchRange,
       Font font,
       System.Nullable<float> fontSize
    )

    Parameters

    findTextParams
    The text to search for.
    newText
    The replacement text.
    searchRange
    The search scope.
    font
    The font to use on newText, if a null reference (Nothing in Visual Basic) the current font will be used.
    fontSize
    The font size to use on newText, if a null reference (Nothing in Visual Basic) the current font size will be used.
    See Also