Document Solutions for PDF
GrapeCity.Documents.Pdf Assembly / GrapeCity.Documents.Pdf Namespace / Page Class / ReplaceText Method / ReplaceText(ViewState,TextMapFragment,String,Font,Nullable<Single>) Method
The GrapeCity.Documents.Pdf.Layers.ViewState used to determine what document content should be considered.
The text range.
The replacement text.
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(ViewState,TextMapFragment,String,Font,Nullable<Single>) Method
    In This Topic
    Replaces a specified text range on the current page.
    Syntax
    'Declaration
     
    Public Overloads Sub ReplaceText( _
       ByVal viewState As ViewState, _
       ByVal fragment As TextMapFragment, _
       ByVal newText As System.String, _
       Optional ByVal font As Font, _
       Optional ByVal fontSize As System.Nullable(Of Single) _
    ) 
    public void ReplaceText( 
       ViewState viewState,
       TextMapFragment fragment,
       System.string newText,
       Font font,
       System.Nullable<float> fontSize
    )

    Parameters

    viewState
    The GrapeCity.Documents.Pdf.Layers.ViewState used to determine what document content should be considered.
    fragment
    The text range.
    newText
    The replacement text.
    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