Export (0) Print
Expand All
Expand Minimize

Selection Properties

The Selection type exposes the following members.

  NameDescription
Public property Active Determines if the selection in the specified window or pane is active.
Public property Application Returns a _Application object that represents the Microsoft Word application.
Public property BookmarkID Returns the number of the bookmark that encloses the beginning of the specified selection or 0 (zero) if there's no corresponding bookmark.
Public property Bookmarks Returns a Bookmarks collection that represents all the bookmarks in a selection.
Public property Borders Returns a Borders collection that represents all the borders for the specified object.
Public property Cells Returns a Cells collection that represents the table cells in a selection.
Public property Characters Returns a Characters collection that represents the characters in a selection.
Public property ChildShapeRange Returns a ShapeRange object representing the child shapes of a selection.
Public property Columns Returns a Columns collection that represents all the table columns in the selection.
Public property ColumnSelectMode Determines if column selection mode is active.
Public property Comments Returns a Comments collection that represents all the comments in the specified selection.
Public property ContentControls Returns a ContentControls collection that represents the content controls contained within a range. Read-only.
Public property Creator Returns a 32-bit integer that indicates the application in which the specified object was created.
Public property Document Returns a Document object associated with the specified selection.
Public property Editors Returns a Editors object that represents all the users authorized to modify a selection within a document.
Public property End Returns or sets the ending character position of a selection.
Public property EndnoteOptions Returns a EndnoteOptions object that represents the endnotes in a selection.
Public property Endnotes Returns a Endnotes collection that represents all the endnotes in a selection.
Public property EnhMetaFileBits Returns an Object that represents a picture representation of how a selection of text appears.
Public property ExtendMode Determines if Extend mode is active.
Public property Fields Returns a read-only Fields collection that represents all the fields in the selection.
Public property Find Returns a Find object that contains the criteria for a find operation.
Public property FitTextWidth Returns or sets the width (in the current measurement units) in which Microsoft Word fits the text in the current selection.
Public property Flags Returns or sets properties of the selection.
Public property Font Returns or sets a Font object that represents the character formatting of the specified object.
Public property FootnoteOptions Returns a FootnoteOptions object that represents the footnote properties in a selection.
Public property Footnotes Returns a Footnotes collection that represents all the footnotes in a selection.
Public property FormattedText Returns or sets a Range object that includes the formatted text in the specified selection.
Public property FormFields Returns a FormFields collection that represents all the form fields in the selection.
Public property Frames Returns a Frames collection that represents all the frames in a selection.
Public property HasChildShapeRange Determines if the selection contains child shapes.
Public property HeaderFooter Returns a HeaderFooter object for the specified selection.
Public property HTMLDivisions Returns a HTMLDivisions object that represents an HTML division in a Web document.
Public property Hyperlinks Returns a Hyperlinks collection that represents all the hyperlinks in the specified selection.
Public property Information Returns information about the specified selection or range.
Public property InlineShapes Returns a InlineShapes collection that represents all the InlineShape objects in a selection.
Public property IPAtEndOfLine Determines if the insertion point is at the end of a line that wraps to the next line.
Public property IsEndOfRowMark Determines if the specified selection is collapsed and is located at the end-of-row mark in a table.
Public property LanguageDetected Returns or sets a value that specifies whether Microsoft Word has detected the language of the specified text.
Public property LanguageID Returns or sets the language for the specified object.
Public property LanguageIDFarEast Returns or sets an East Asian language for the specified object.
Public property LanguageIDOther Returns or sets the language for the specified object.
Public property NoProofing Determines if the spelling and grammar checker ignores the specified text.
Public property OMaths Returns an OMaths collection that represents the OMath objects within the current selection. Read-only.
Public property Orientation Returns or sets the orientation of text in a selection when the Text Direction feature is enabled.
Public property PageSetup Returns a PageSetup object that's associated with the specified selection.
Public property ParagraphFormat Returns or sets a ParagraphFormat object that represents the paragraph settings for the specified selection.
Public property Paragraphs Returns a Paragraphs collection that represents all the paragraphs in the specified selection.
Public property Parent Returns an object that represents the parent object of the specified object.
Public property ParentContentControl Returns a ContentControl object that represents the parent content control for the specified range. Read-only.
Public property PreviousBookmarkID Returns the number of the last bookmark that starts before or at the same place as the specified selection or returns 0 (zero) if there's no corresponding bookmark.
Public property Range Returns a Range object that represents the portion of a document that's contained in the specified object.
Public property Rows Returns a Rows collection that represents all the table rows in a selection.
Public property Sections Returns a Sections collection that represents the sections in the specified selection.
Public property Sentences Returns a Sentences collection that represents all the sentences in the selection.
Public property Shading Returns a Shading object that refers to the shading formatting for the specified object.
Public property ShapeRange Returns a ShapeRange collection that represents all the Shape objects in the specified range or selection.
Public property SmartTags Returns a SmartTags object that represents a smart tag in a document.
Public property Start Returns or sets the starting character position of a selection.
Public property StartIsActive Determines if the beginning of the selection is active.
Public property StoryLength Returns the number of characters in the story that contains the specified selection.
Public property StoryType Returns the story type for the specified selection.
Public property Style Returns or sets the style for the specified object.
Public property Tables Returns a Tables collection that represents all the tables in the specified selection.
Public property Text Returns or sets the text in the specified selection.
Public property TopLevelTables Returns a Tables collection that represents the tables at the outermost nesting level in the current selection.
Public property Type Returns the selection type.
Public property WordOpenXML Returns a String that represents the XML contained within the selection in the Microsoft Office Word Open XML format. Read-only.
Public property Words Returns a Words collection that represents all the words in a selection.
Public property XML Returns a String that represents the XML text in the specified object.
Public property XMLNodes Returns a XMLNodes collection that represents the collection of all XML elements in a selection — including those elements that are only partially within the selection.
Public property XMLParentNode Returns a XMLNode object that represents the parent node of a selection.
Top

Community Additions

ADD
Show:
© 2014 Microsoft