TextRange Object Members

PowerPoint Developer Reference

Contains the text that's attached to a shape, and properties and methods for manipulating the text.

Methods

  Name Description
Bb251500.methods(en-us,office.12).gif AddPeriods Adds a period at the end of each paragraph in the specified text.
Bb251500.methods(en-us,office.12).gif ChangeCase Changes the case of the specified text.
Bb251500.methods(en-us,office.12).gif Characters Returns a TextRange object that represents the specified subset of text characters. For information about counting or looping through the characters in a text range, see the TextRange object.
Bb251500.methods(en-us,office.12).gif Copy Copies the specified object to the Clipboard.
Bb251500.methods(en-us,office.12).gif Cut Deletes the specified object and places it on the Clipboard.
Bb251500.methods(en-us,office.12).gif Delete Deletes the specified TextRange object.
Bb251500.methods(en-us,office.12).gif Find Finds the specified text in a text range, and returns a TextRange object that represents the first text range where the text is found. Returns Nothing if no match is found.
Bb251500.methods(en-us,office.12).gif InsertAfter Appends a string to the end of the specified text range. Returns a TextRange object that represents the appended text. When used without an argument, this method returns a zero-length string at the end of the specified range.
Bb251500.methods(en-us,office.12).gif InsertBefore Appends a string to the beginning of the specified text range. Returns a TextRange object that represents the appended text. When used without an argument, this method returns a zero-length string at the end of the specified range.
Bb251500.methods(en-us,office.12).gif InsertDateTime Inserts the date and time in the specified text range. Returns a TextRange object that represents the inserted text.
Bb251500.methods(en-us,office.12).gif InsertSlideNumber Inserts the slide number of the current slide into the specified text range. Returns a TextRange object that represents the slide number.
Bb251500.methods(en-us,office.12).gif InsertSymbol Returns a TextRange object that represents a symbol inserted into the specified text range.
Bb251500.methods(en-us,office.12).gif Lines Returns a TextRange object that represents the specified subset of text lines. For information about counting or looping through the lines in a text range, see the TextRange object.
Bb251500.methods(en-us,office.12).gif LtrRun Sets the direction of text in a text range to read from left to right.
Bb251500.methods(en-us,office.12).gif Paragraphs Returns a TextRange object that represents the specified subset of text paragraphs.
Bb251500.methods(en-us,office.12).gif Paste Pastes the text on the Clipboard into the specified text range, and returns a TextRange object that represents the pasted text.
Bb251500.methods(en-us,office.12).gif PasteSpecial Replaces the text range with the contents of the Clipboard in the format specified.
Bb251500.methods(en-us,office.12).gif RemovePeriods Removes the period at the end of each paragraph in the specified text.
Bb251500.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 TextRange object that represents the first occurrence of the found text. Returns Nothing if no match is found.
Bb251500.methods(en-us,office.12).gif RotatedBounds Returns the coordinates of the vertices of the text bounding box for the specified text range.
Bb251500.methods(en-us,office.12).gif RtlRun Sets the direction of text in a text range to read from right to left.
Bb251500.methods(en-us,office.12).gif Runs Returns a TextRange object that represents the specified subset of text runs. A text run consists of a range of characters that share the same font attributes.
Bb251500.methods(en-us,office.12).gif Select Selects the specified object.
Bb251500.methods(en-us,office.12).gif Sentences Returns a TextRange object that represents the specified subset of text sentences.
Bb251500.methods(en-us,office.12).gif TrimText Returns a TextRange object that represents the specified text minus any trailing spaces.
Bb251500.methods(en-us,office.12).gif Words Returns a TextRange object that represents the specified subset of text words.

Properties

  Name Description
Bb251500.properties(en-us,office.12).gif ActionSettings Returns an ActionSettings object that contains information about what action occurs when the user clicks or moves the mouse over the specified shape or text range during a slide show. Read-only.
Bb251500.properties(en-us,office.12).gif Application Returns an Application object that represents the creator of the specified object.
Bb251500.properties(en-us,office.12).gif BoundHeight Returns the height (in points) of the text bounding box for the specified text frame. Read-only.
Bb251500.properties(en-us,office.12).gif BoundLeft Returns the distance (in points) from the left edge of the text bounding box for the specified text frame to the left edge of the slide. Read-only.
Bb251500.properties(en-us,office.12).gif BoundTop Returns the distance (in points) from the top of the of the text bounding box for the specified text frame to the top of the slide. Read-only.
Bb251500.properties(en-us,office.12).gif BoundWidth Returns the width (in points) of the text bounding box for the specified text frame. Read-only.
Bb251500.properties(en-us,office.12).gif Count Returns the number of objects in the specified collection. Read-only.
Bb251500.properties(en-us,office.12).gif Font Returns a Font object that represents character formatting. Read-only.
Bb251500.properties(en-us,office.12).gif IndentLevel Returns or sets the the indent level for the specified text as an integer from 1 to 5, where 1 indicates a first-level paragraph with no indentation. Read/write.
Bb251500.properties(en-us,office.12).gif LanguageID Returns or sets the language for the specified text range. Read/write.
Bb251500.properties(en-us,office.12).gif Length Returns the length of the specified text range, in characters. Read-only.
Bb251500.properties(en-us,office.12).gif ParagraphFormat Returns a ParagraphFormat object that represents paragraph formatting for the specified text. Read-only.
Bb251500.properties(en-us,office.12).gif Parent Returns the parent object for the specified object.
Bb251500.properties(en-us,office.12).gif Start Returns the position of the first character in the specified text range relative to the first character in the shape that contains the text. Read-only.
Bb251500.properties(en-us,office.12).gif Text Returns or sets a String that represents the text contained in the specified object. Read/write.