Document Solutions for Excel, Java Edition | Document Solutions
com.grapecity.documents.excel.drawing Package / ITextRange Interface / add Method / add(String,int) Method
The new text.
The position that you want to insert.
In This Topic
    add(String,int) Method
    In This Topic
    Adds text to the specified collection.
    Syntax
    ITextRange add( 
       java.lang.String newText,
       int position
    )

    Parameters

    newText
    The new text.
    position
    The position that you want to insert.

    Return Value

    The new ITextRange. This property is only used in Body and Paragraph. Use this property on Body and it will add a paragraph with a run. Use this property on Paragraph and it will add a run.
    See Also