|
|||||||||
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. |
method summary | |
---|---|
java.lang.string |
get(int index)
gets the string at the specified index. |
textrange |
getasonerange()
gets as one range. |
textrange |
getasonerange(boolean iscopyformat)
gets as one range. |
int |
getcount()
gets the count of text chunks. |
textrange[] |
getranges()
gets the ranges. |
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)
sets the string at the specified index. |
constructor detail |
---|
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)
index
- index
public void set(int index, java.lang.string value)
index
- indexvalue
- valuepublic int getcount()
public textrange[] getranges()
public textrange getasonerange()
public textrange getasonerange(boolean iscopyformat)
iscopyformat
- is copy existing formats to textrange
public java.util.iterator iterator()
iterator
object that can be used to iterate through the collection.
|
|||||||||
prev class next class | frames no frames | ||||||||
summary: nested | field | constr | method | detail: field | constr | method |