Table of contents
TOC
Collapse the table of content
Expand the table of content

TextRange2 Properties (Office)

office 365 dev account|Last Updated: 6/12/2017
|
1 Contributor

Properties

NameDescription
ApplicationUsed 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.
BoundHeightGets the height, in points, of the text bounding box for the specified text. Read-only.
BoundLeftGets the left coordinate, in points, of the text bounding box for the specified text. Read-only.
BoundTopGets the top coordinate, in points, of the text bounding box for the specified text. Read-only.
BoundWidthGets the width, in points, of the text bounding box for the specified text. Read-only.
CharactersRead-only.
CountGets a Long indicating the number of items in the TextRange2 collection. Read-only.
CreatorGets a 32-bit integer that indicates the application in which the TextRange2 object was created. Read-only.
FontReturns a Font object that represents character formatting for the TextRange2 object. Read-only.
LanguageIDGets or sets the MsoLanguageID value of the TextRange2 object. Read/write.
LengthGet a Long that represents the length of a text range. Read-only.
LinesReturns a TextRange2 object that represents the specified subset of text lines. Read-only.
MathZonesSets the starting point and length of a math zone within a text range. Read-only
ParagraphFormatReturns a ParagraphFormat object that represents paragraph formatting for the specified text. Read-only.
ParagraphsGets a TextRange2 object that represents the specified subset of text paragraphs. Read-only.
ParentGets the Parent object for the TextRange2 object. Read-only.
RunsGets 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.
SentencesReturns a TextRange2 object that represents the specified subset of text sentences. Read-only.
StartGets a Long value indicating the starting point of the specified text range. Read-only.
TextGets or sets a String value that represents the text in a text range. Read/write.
WordsGets a TextRange2 object that represents the specified subset of text words. Read-only.
© 2018 Microsoft