Share via


TextRange2 Object Members

Represents the text frame in a Shape or ShapeRange objects.

Methods

  Name Description
Aa434491.methods(en-us,office.12).gif AddPeriods Adds period (.) punctuation to the right side of the text contained in TextRange2 object for left-to-right languages and on the left side for right-to-left languages.
Aa434491.methods(en-us,office.12).gif ChangeCase Changes the case of a TextRange2 object to one of the values in the MsoTextChangeCase enumeration.
Aa434491.methods(en-us,office.12).gif Copy Copies a TextRange2 object.
Aa434491.methods(en-us,office.12).gif Cut Removes a portion or all of the text from a range of text.
Aa434491.methods(en-us,office.12).gif Delete Deletes a TextRange2 object.
Aa434491.methods(en-us,office.12).gif Find Searches a TextRange2 object for a subset of text.
Aa434491.methods(en-us,office.12).gif InsertAfter Inserts text to the right of the existing text in the TextRange2 object.
Aa434491.methods(en-us,office.12).gif InsertBefore Inserts text to the left of the existing text in the TextRange2 object.
Aa434491.methods(en-us,office.12).gif InsertSymbol Inserts a symbol from the specified font set into the range of text represented by the TextRange2 object.
Aa434491.methods(en-us,office.12).gif Item Gets the range of text specified by the index number from the TextRange2 object.
Aa434491.methods(en-us,office.12).gif LtrRun Returns a TextRange2 object that represents the specified subset of left-to-right text runs. A text run consists of a range of characters that share the same font attributes.
Aa434491.methods(en-us,office.12).gif Paste Pastes the contents of the Clipboard into the TextRange2 object.
Aa434491.methods(en-us,office.12).gif PasteSpecial Replaces the text range with the contents of the Clipboard in the format specified. If the paste succeeds, this method returns a TextRange2 object including the text range that was pasted.
Aa434491.methods(en-us,office.12).gif RemovePeriods Removes all period (.) punctuation from the text in the TextRange2 object.
Aa434491.methods(en-us,office.12).gif Replace Finds specific text in a text range, replaces the found text with a specified string, and returns a TextRange2 object that represents the first occurrence of the found text. Returns Nothing if no match is found.
Aa434491.methods(en-us,office.12).gif RotatedBounds Gets the coordinates of the vertices of the text bounding box for the specified text range. Read-only.
Aa434491.methods(en-us,office.12).gif RtlRun Returns a TextRange2 object that represents the specified subset of right-to-left text runs. A text run consists of a range of characters that share the same font attributes.
Aa434491.methods(en-us,office.12).gif Select Selects the TextRange2 object.
Aa434491.methods(en-us,office.12).gif TrimText Removes the white space on the left and right sides of the text in the TextRange2 object.

Properties

  Name Description
Aa434491.properties(en-us,office.12).gif Application Used without an object qualifier, this property returns an Application object that represents the current instance of the Microsoft Office application. Used with an object qualifier, this property returns an Application object that represents the creator of the TextRange2 object. When used with an OLE Automation object, it returns the object's application. Read-only.
Aa434491.properties(en-us,office.12).gif BoundHeight Gets the height, in points, of the text bounding box for the specified text. Read-only.
Aa434491.properties(en-us,office.12).gif BoundLeft Gets the left coordinate, in points, of the text bounding box for the specified text. Read-only.
Aa434491.properties(en-us,office.12).gif BoundTop Gets the top coordinate, in points, of the text bounding box for the specified text. Read-only.
Aa434491.properties(en-us,office.12).gif BoundWidth Gets the width, in points, of the text bounding box for the specified text. Read-only.
Aa434491.properties(en-us,office.12).gif Characters Read-only.
Aa434491.properties(en-us,office.12).gif Count Gets a Long indicating the number of items in the TextRange2 collection. Read-only.
Aa434491.properties(en-us,office.12).gif Creator Gets a 32-bit integer that indicates the application in which the TextRange2 object was created. Read-only.
Aa434491.properties(en-us,office.12).gif Font Returns a Font object that represents character formatting for the TextRange2 object. Read-only.
Aa434491.properties(en-us,office.12).gif LanguageID Gets or sets the MsoLanguageID value of the TextRange2 object. Read/write.
Aa434491.properties(en-us,office.12).gif Length Get a Long that represents the length of a text range. Read-only.
Aa434491.properties(en-us,office.12).gif Lines Returns a TextRange2 object that represents the specified subset of text lines. Read-only.
Aa434491.properties(en-us,office.12).gif ParagraphFormat Returns a ParagraphFormat object that represents paragraph formatting for the specified text. Read-only.
Aa434491.properties(en-us,office.12).gif Paragraphs Gets a TextRange2 object that represents the specified subset of text paragraphs. Read-only.
Aa434491.properties(en-us,office.12).gif Parent Gets the Parent object for the TextRange2 object. Read-only.
Aa434491.properties(en-us,office.12).gif Runs Gets a TextRange2 object that represents the specified subset of text runs. A text run consists of a range of characters that share the same font attributes. Read-only.
Aa434491.properties(en-us,office.12).gif Sentences Returns a TextRange2 object that represents the specified subset of text sentences. Read-only.
Aa434491.properties(en-us,office.12).gif Start Gets a Long value indicating the starting point of the specified text range. Read-only.
Aa434491.properties(en-us,office.12).gif Text Gets or sets a String value that represents the text in a text range. Read/write.
Aa434491.properties(en-us,office.12).gif Words Gets a TextRange2 object that represents the specified subset of text words. Read-only.