A range of characters from a text item.
Go to Property Listing | Method Listing
changeCaseTo, deSelect, duplicate, getParagraphLength, getTextRunLength, move, remove, removeAll, select
CharacterAttributes, CharacterStyles, Characters, InsertionPoints, Lines, ParagraphAttributes, ParagraphStyles, Paragraphs, Story, String, TextRange, TextRanges, Words
Property |
Type |
Access |
Description |
---|---|---|---|
readonly |
The character properties for the text range. |
||
Int32 |
read/write |
Offset of the first character of the range from the beginning of the story, in characters. |
|
readonly |
List of referenced character styles in the text range. |
||
readonly |
All the characters in this text range. |
||
read/write |
The text string. |
||
Int32 |
read/write |
End index of the text range. |
|
readonly |
All the insertion points in this text range. |
||
Int32 |
read/write |
Controls the spacing between two characters (in milli-ems) |
|
Int32 |
read/write |
Length of text range. |
|
readonly |
All the lines in this text range. |
||
readonly |
The paragraph properties for the text range. |
||
readonly |
List of referenced paragraph styles in the text range. |
||
readonly |
All the paragraphs in this text range. |
||
readonly |
The object's container. |
||
Int32 |
read/write |
Start index of the text range. |
|
readonly |
The story of the text range. |
||
readonly |
All the text in this text range. |
||
readonly |
The selected text (ranges) in the text range. |
||
readonly |
The class name of the object. |
||
readonly |
All the words in this text range. |
undefined changeCaseTo (type:CaseChangeType)
Change the capitalization of text.
Parameter |
Type |
Description |
---|---|---|
type |
The type of case. |
undefined deSelect ()
Deselect the text range.
TextRange duplicate (relativeObject:Object, insertionLocation:ElementPlacement)
Duplicate this object.
Parameter |
Type |
Description |
---|---|---|
relativeObject |
||
insertionLocation |
ElementPlacement |
Int32 getParagraphLength ()
Get the length of the first paragraph.
Int32 getTextRunLength ()
Get the length of the first text run.
TextRange move (relativeObject:Object, insertionLocation:ElementPlacement)
Move the object.
Parameter |
Type |
Description |
---|---|---|
relativeObject |
||
insertionLocation |
ElementPlacement |
undefined remove ()
Deletes this object.
undefined removeAll ()
Deletes all elements.
undefined select ([addToDocument:Boolean=Boolean])
Select the text range.
Parameter |
Type |
Description |
---|---|---|
addToDocument |
Whether to add the text range to the document text selection. (default: false) |
Story.textSelection
TextFrameItem.textSelection
TextRange.textSelection
Story.textRange
TextFrameItem.textRange