Document Solutions for PDF
DS.Documents.Pdf Assembly / GrapeCity.Documents.Pdf.TextMap Namespace / ITextMap Interface / ReplaceText Method
The fragment to replace.
The replacement text.
The font for the replacement text. If a null reference (Nothing in Visual Basic), the current font will be used.
The font size for the replacement text. If a null reference (Nothing in Visual Basic), the current font size will be used.

In This Topic
    ReplaceText Method (ITextMap)
    In This Topic
    Replaces a specified text fragment with another text.
    Syntax
    'Declaration
     
    Sub ReplaceText( _
       ByVal fragment As TextMapFragment, _
       ByVal text As System.String, _
       Optional ByVal font As Font, _
       Optional ByVal fontSize As System.Nullable(Of Single) _
    ) 
    void ReplaceText( 
       TextMapFragment fragment,
       System.string text,
       Font font,
       System.Nullable<float> fontSize
    )

    Parameters

    fragment
    The fragment to replace.
    text
    The replacement text.
    font
    The font for the replacement text. If a null reference (Nothing in Visual Basic), the current font will be used.
    fontSize
    The font size for the replacement text. If a null reference (Nothing in Visual Basic), the current font size will be used.
    See Also