|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.spire.doc.documents.TextSelection
public class TextSelection
Represent a selection of text inside paragraph.
| Constructor Summary | |
|---|---|
TextSelection(Paragraph para,
int startCharPos,
int endCharPos)
Initializes a new instance of the TextSelection class. |
|
TextSelection(Paragraph startPara,
Paragraph endPara,
int startCharPos,
int endCharPos)
Initializes a new instance of the |
|
| Method Summary | |
|---|---|
java.lang.String |
get(int index)
|
TextRange |
getAsOneRange()
Gets as one range. |
TextRange |
getAsOneRange(boolean IsCopyFormat)
Gets as one range. |
TextRange[] |
getAsRange()
Gets as range. |
TextRange[] |
getAsRange(boolean isCopyFormat)
Gets as range. |
int |
getCount()
Gets the count of text chunks. |
TextRange[] |
getRanges()
Gets the ranges in one paragraph. |
java.lang.String |
getSelectedText()
Gets the selected text. |
java.util.Iterator |
iterator()
Returns an enumerator that iterates through a collection. |
void |
set(int index,
java.lang.String value)
|
| Constructor Detail |
|---|
public TextSelection(Paragraph startPara,
Paragraph endPara,
int startCharPos,
int endCharPos)
startPara - The paragraph.startCharPos - The start char position.endCharPos - The end char position.
public TextSelection(Paragraph para,
int startCharPos,
int endCharPos)
TextSelection class.
para - The paragraphstartCharPos - The start char position.endCharPos - The end char position.| Method Detail |
|---|
public java.lang.String getSelectedText()
public java.lang.String get(int index)
public void set(int index,
java.lang.String value)
public int getCount()
public TextRange[] getRanges()
public TextRange[] getAsRange()
public TextRange[] getAsRange(boolean isCopyFormat)
isCopyFormat - Is copy existing formats to textrange
public TextRange getAsOneRange()
public TextRange getAsOneRange(boolean IsCopyFormat)
IsCopyFormat - Is copy existing formats to textrange
public java.util.Iterator iterator()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||