TextSelection Class |
Namespace: TextObjectModel
The TextSelection type exposes the following members.
Name | Description | |
---|---|---|
AddSubrange |
(TOM 2 only)
Adds a subrange to this range.
(Inherited from TextRange.) | |
BuildUpMath |
(TOM 2 only)
Converts the linear-format math in a range to a built-up form, or modifies the current built-up form.
(Inherited from TextRange.) | |
ChangeCase |
Changes the case of letters in this range according to the type parameter.
(Inherited from TextRange.) | |
Clone |
Gets a duplicate of this range object.
(Inherited from TextRange.) | |
Collapse |
Collapses the specified text range into a degenerate point at either the beginning or end of the range.
(Inherited from TextRange.) | |
Copy |
Copies the text to the clipboard.
(Inherited from TextRange.) | |
Cut |
Cuts the plain or rich text to the clipboard.
(Inherited from TextRange.) | |
Delete |
Mimics the DELETE and BACKSPACE keys, with and without the CTRL key depressed.
(Inherited from TextRange.) | |
DeleteSubrange |
(TOM 2 only)
Deletes a subrange from the range.
(Inherited from TextRange.) | |
Dispose | (Inherited from TextRange.) | |
Dispose(Boolean) | Releases the unmanaged resources used by the TextSelection and optionally releases the managed resources (Overrides TextRangeDispose(Boolean).) | |
EndKey |
Mimics the functionality of the End key.
| |
EndOf |
Moves this range's ends to the end of the last overlapping unit in the range.
(Inherited from TextRange.) | |
Equals(Object) |
Tests if this object is considered equal to another.
(Inherited from TextRange.) | |
Equals(TextRange) |
Determines whether this range has the same character positions and story as those of a specified range.
(Inherited from TextRange.) | |
Expand |
Expands this range so that any partial units it contains are completely contained.
(Inherited from TextRange.) | |
Finalize | (Inherited from TextRange.) | |
Find |
(TOM 2 only)
Searchs for math inline functions in text as specified by a source range.
(Inherited from TextRange.) | |
FindText(String, RangeMatchType) |
Searches to the end of the story for the text given by text.
The matching criteria are given by flags.
(Inherited from TextRange.) | |
FindText(String, Int32, RangeMatchType) |
Searches up to count characters for the text given by text.
The starting position and direction are also specified by count,
and the matching criteria are given by flags.
(Inherited from TextRange.) | |
FindTextEnd(String, RangeMatchType) |
Searches to the end of the story for text, starting from the range's end.
(Inherited from TextRange.) | |
FindTextEnd(String, Int32, RangeMatchType) |
Searches up to count characters for text, starting from the range's end.
(Inherited from TextRange.) | |
FindTextStart(String, RangeMatchType) |
Searches to the end of the story for text, starting at the range's start.
(Inherited from TextRange.) | |
FindTextStart(String, Int32, RangeMatchType) |
Searches up to count characters for text, starting at the range's start.
(Inherited from TextRange.) | |
GetCells |
(TOM 2 only)
Gets the cells in the range.
(Inherited from TextRange.) | |
GetChar |
(TOM 2 only)
Gets the character at the specified offset from the end of this range.
(Inherited from TextRange.) | |
GetColumn |
(TOM 2 only)
Gets the column in the range.
(Inherited from TextRange.) | |
GetDataObject |
Returns an IDataObject containing the text in the range.
(Inherited from TextRange.) | |
GetDropCap |
(TOM 2 only)
Gets the line and position of the drop cap.
(Inherited from TextRange.) | |
GetEmbeddedObject |
Retrieves the embedded object at the start of the specified range.
The range must either be an insertion point or it must select only the embedded object.
(Inherited from TextRange.) | |
GetHashCode |
Returns the hash code for the object.
(Inherited from TextRange.) | |
GetIndex |
Retrieves the story index of the unit parameter at the specified range start character position.
The first unit in a story has an index value of 1.
The index of a Unit is the same for all character positions from that immediately preceding the unit up to the last character in the unit.
(Inherited from TextRange.) | |
GetMathFunctionType |
(TOM 2 only)
Retrieves the math function type associated with the specified math function name.
(Inherited from TextRange.) | |
GetPoint |
Retrieves screen coordinates for the start or end character position in the text range, along with the intra-line position.
(Inherited from TextRange.) | |
GetProperty |
(TOM 2 only)
Gets the value of a property.
(Inherited from TextRange.) | |
GetRectangle |
(TOM 2 only)
Retrieves a rectangle of the specified type for the current range.
(Inherited from TextRange.) | |
GetRow |
(TOM 2 only)
Gets the row properties in the currently selected row.
(Inherited from TextRange.) | |
GetSubrange |
(TOM 2 only)
Retrieves a subrange in a range.
(Inherited from TextRange.) | |
GetTable |
(TOM 2 only)
Gets the table in the range.
(Inherited from TextRange.) | |
GetText |
(TOM 2 only)
Gets the text in this range according to the specified conversion flags.
(Inherited from TextRange.) | |
HexToUnicode |
(TOM 2 only)
Converts and replaces the hexadecimal number at the end of this range to a Unicode character.
(Inherited from TextRange.) | |
HomeKey |
Mimics the functionality of the Home key.
| |
InRange |
Determines whether this range is within or at the same text as a specified range.
(Inherited from TextRange.) | |
InsertImage |
(TOM 2 only)
Inserts a table in a range.
(Inherited from TextRange.) | |
InsertTable |
(TOM 2 only)
Inserts a table in a range.
(Inherited from TextRange.) | |
Linearize |
(TOM 2 only)
Translates the built-up math, ruby, and other inline objects in this range to linearized form.
(Inherited from TextRange.) | |
Move |
Moves the insertion point forward or backward a specified number of units.
If the range is nondegenerate, the range is collapsed to an insertion point at either end,
depending on count, and then is moved.
(Inherited from TextRange.) | |
MoveDown |
Mimics the functionality of the Down Arrow and Page Down keys.
| |
MoveEnd |
Moves the end position of the range.
(Inherited from TextRange.) | |
MoveEndUntil |
Moves the range's end to the character position of the first
character found that is in the set of characters specified by
chars.
(Inherited from TextRange.) | |
MoveEndWhile |
Moves the end of the range just past all contiguous characters
that are found in the set of characters specified by
chars, whichever is less.
(Inherited from TextRange.) | |
MoveLeft |
Generalizes the functionality of the Left Arrow key.
| |
MoveRight |
Generalizes the functionality of the Right Arrow key.
| |
MoveStart |
Moves the start position of the range.
(Inherited from TextRange.) | |
MoveStartUntil |
Moves the range's start to the character position of the first
character found that is in the set of characters specified by
chars.
(Inherited from TextRange.) | |
MoveStartWhile |
Moves the start position of the range just past all contiguous
characters that are found in the set of characters specified by
chars.
(Inherited from TextRange.) | |
MoveUntil |
Searches for the first character in the set of characters
specified by chars. If a character is found,
the range is collapsed to that point.
(Inherited from TextRange.) | |
MoveUp |
Mimics the functionality of the Up Arrow and Page Up keys.
| |
MoveWhile |
Starts at the end of the range and searches while the characters
belong to the set specified by chars.
The range is collapsed to an insertion point when a non-matching character is found.
(Inherited from TextRange.) | |
Paste |
Pastes text from the clipboard.
(Inherited from TextRange.) | |
ScrollIntoView |
Scrolls the range into view.
(Inherited from TextRange.) | |
Select |
Sets the start and end positions, and story values of the active selection, to those of this range.
(Inherited from TextRange.) | |
SetActiveSubrange |
(TOM 2 only)
Makes the specified subrange the active subrange of this range.
(Inherited from TextRange.) | |
SetDataObject |
Replaces the text in the range with the specified data object.
(Inherited from TextRange.) | |
SetDropCap |
(TOM 2 only)
Sets the line and position of the drop cap.
(Inherited from TextRange.) | |
SetFormattedText |
Sets the formatted text of this range text to the formatted text of the specified range.
(Inherited from TextRange.) | |
SetIndex |
Changes this range to the specified unit of the story.
(Inherited from TextRange.) | |
SetPoint |
Changes the range based on a specified point at or up through
(depending on extend) the point (x, y) aligned
according to position.
(Inherited from TextRange.) | |
SetProperty |
(TOM 2 only)
Sets the value of the specified property.
(Inherited from TextRange.) | |
SetRange |
Adjusts the range endpoints to the specified values.
(Inherited from TextRange.) | |
SetText |
(TOM 2 only)
Sets the text of this range.
(Inherited from TextRange.) | |
StartOf |
Moves the range ends to the start of the first overlapping Unit in the range.
(Inherited from TextRange.) | |
ToString |
Returns the plain text in the range.
(Inherited from TextRange.) | |
TypeText |
Types the string given by text at this
selection as if someone typed it. This is similar to setting
the Text property, but is sensitive
to the Insert/Overtype key state and UI settings like
AutoCorrect and smart quotes.
| |
UnicodeToHex |
(TOM 2 only)
Converts the Unicode character(s) preceding the start position of this text range to a hexadecimal number, and selects it.
(Inherited from TextRange.) |
Name | Description | |
---|---|---|
Append |
Appends text to the end of the range.
(Defined by TextExtensions.) | |
AppendLine |
Appends text, followed by a newline character, to the end of the range.
(Defined by TextExtensions.) | |
Clear |
Clears the text in the range.
(Defined by TextExtensions.) | |
Insert |
Inserts text at the specified position within the range.
(Defined by TextExtensions.) | |
Remove |
Removes a sequence of characters from the range.
(Defined by TextExtensions.) | |
ToMathML |
Returns a string containing the W3C MathML (MML) markup for the math text in the range.
(Defined by TextExtensions.) | |
ToOfficeMathML |
Returns a string containing the Office MathML (OMML) markup for the math text in the range.
(Defined by TextExtensions.) |
Name | Description | |
---|---|---|
CanEdit |
Gets a value determining whether the specified range can be edited.
(Inherited from TextRange.) | |
CanPaste |
Gets a value determining if data on the clipboard can be pasted into the current range.
(Inherited from TextRange.) | |
Char |
Gets or sets the character at the start position of the range.
(Inherited from TextRange.) | |
End |
Gets or sets the end character position of the range.
(Inherited from TextRange.) | |
Flags |
Gets or sets the text selection flags.
| |
Font |
Gets or sets a TextFont object with the character attributes of the specified range.
(Inherited from TextRange.) | |
Gravity |
(TOM 2 only)
Gets or sets the gravity of this range.
(Inherited from TextRange.) | |
InlineObject |
(TOM 2 only)
Gets or sets the properties of the inline object at the range active end.
(Inherited from TextRange.) | |
Length |
Gets or sets the length of the range.
(Inherited from TextRange.) | |
Para |
Gets or sets a TextPara object with the paragraph attributes of the specified range.
(Inherited from TextRange.) | |
Rtf |
Gets or sets the content of the range as a Rich Text Format (RTF) string.
(Inherited from TextRange.) | |
Start |
Gets or sets the start character position of the range.
(Inherited from TextRange.) | |
StartPara |
(TOM 2 only)
Gets the character position of the start of the paragraph that contains the range's start character position.
(Inherited from TextRange.) | |
SubrangeCount |
(TOM 2 only)
Gets the count of subranges, including the active subrange in the current range.
(Inherited from TextRange.) | |
Text |
Gets or sets the plain text in this range.
(Inherited from TextRange.) | |
Type |
Gets the type of text selection.
| |
URL |
(TOM 2 only)
Gets or sets the URL text associated with a range.
(Inherited from TextRange.) |