public interface ITextRange
IShape.| Modifier and Type | Method and Description |
|---|---|
ITextRange |
add()
Adds text to the specified collection.
|
ITextRange |
add(java.lang.String newText)
Adds text to the specified collection.
|
ITextRange |
add(java.lang.String newText,
int position)
Adds text to the specified collection.
|
void |
delete()
Deletes from parent.
|
ITextRange |
get(int index)
Gets the
ITextRange with the specified index. |
int |
getCount()
Returns the number of objects in the collection.
|
IFontFormat |
getFont()
Returns the
IFontFormat object that represents character formatting
for the IFontFormat object. |
int |
getIndex()
Returns the index in the collection.
|
ITextRange |
getParagraphs()
Get the paragraphs of
ITextRange |
ITextRange |
getRuns()
Get the runs of
ITextRange |
java.lang.String |
getText()
Gets a String value that represents the text in a text range.
|
TextRangeType |
getType()
Returns the type of
ITextRange. |
void |
setText(java.lang.String value)
Sets a String value that represents the text in a text range.
|
java.lang.String getText()
void setText(java.lang.String value)
IFontFormat getFont()
IFontFormat object that represents character formatting
for the IFontFormat object.ITextRange getParagraphs()
ITextRange
This method is only used in TextRangeType.Body; otherwise, it throws
InvalidOperateExecption.
ITextRange getRuns()
ITextRange
This method is only used in TextRangeType.Paragraph; otherwise, it
throws InvalidOperateExecption.
ITextRange get(int index)
ITextRange with the specified index.index - The index.ITextRangeint getCount()
int getIndex()
TextRangeType getType()
ITextRange.ITextRange add(java.lang.String newText)
newText - The new text.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.ITextRange add()
ITextRange add(java.lang.String newText, int position)
newText - The new text.position - The position that you want to insert.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.void delete()