Expand Minimize

WdInformation Enumeration

Specifies the type of information returned about a specified selection or range.

Namespace:  Microsoft.Office.Interop.Word
Assembly:  Microsoft.Office.Interop.Word (in Microsoft.Office.Interop.Word.dll)

public enum WdInformation

Member nameDescription
wdActiveEndAdjustedPageNumberReturns the number of the page that contains the active end of the specified selection or range. If you set a starting page number or make other manual adjustments, returns the adjusted page number (unlike wdActiveEndPageNumber).
wdActiveEndSectionNumberReturns the number of the section that contains the active end of the specified selection or range.
wdActiveEndPageNumberReturns the number of the page that contains the active end of the specified selection or range, counting from the beginning of the document. Any manual adjustments to page numbering are disregarded (unlike wdActiveEndAdjustedPageNumber).
wdNumberOfPagesInDocumentReturns the number of pages in the document associated with the selection or range.
wdHorizontalPositionRelativeToPageReturns the horizontal position of the specified selection or range; this is the distance from the left edge of the selection or range to the left edge of the page measured in points (1 point = 20 twips, 72 points = 1 inch). If the selection or range isn't within the screen area, returns – 1.
wdVerticalPositionRelativeToPageReturns the vertical position of the selection or range; this is the distance from the top edge of the selection to the top edge of the page measured in points (1 point = 20 twips, 72 points = 1 inch). If the selection isn't visible in the document window, returns – 1.
wdHorizontalPositionRelativeToTextBoundaryReturns the horizontal position of the specified selection or range relative to the left edge of the nearest text boundary enclosing it, in points (1 point = 20 twips, 72 points = 1 inch). If the selection or range isn't within the screen area, returns - 1.
wdVerticalPositionRelativeToTextBoundaryReturns the vertical position of the selection or range relative to the top edge of the nearest text boundary enclosing it, in points (1 point = 20 twips, 72 points = 1 inch). This is useful for determining the position of the insertion point within a frame or table cell. If the selection isn't visible, returns – 1.
wdFirstCharacterColumnNumberReturns the character position of the first character in the specified selection or range. If the selection or range is collapsed, the character number immediately to the right of the range or selection is returned (this is the same as the character column number displayed in the status bar after "Col").
wdFirstCharacterLineNumberReturns the character position of the first character in the specified selection or range. If the selection or range is collapsed, the character number immediately to the right of the range or selection is returned (this is the same as the character line number displayed in the status bar after "Ln").
wdFrameIsSelectedReturns True if the selection or range is an entire frame or text box.
wdWithInTableReturns True if the selection is in a table.
wdStartOfRangeRowNumberReturns the table row number that contains the beginning of the selection or range.
wdEndOfRangeRowNumberReturns the table row number that contains the end of the specified selection or range.
wdMaximumNumberOfRowsReturns the greatest number of table rows within the table in the specified selection or range.
wdStartOfRangeColumnNumberReturns the table column number that contains the beginning of the selection or range.
wdEndOfRangeColumnNumberReturns the table column number that contains the end of the specified selection or range.
wdMaximumNumberOfColumnsReturns the greatest number of table columns within any row in the selection or range.
wdZoomPercentageReturns the current percentage of magnification as set by the Percentage property.
wdSelectionModeReturns a value that indicates the current selection mode, as shown in the following table.
ValueSelection mode
0 (zero)Normal selection
1Extended selection ("EXT" appears on the status bar)
2Column selection. ("COL" appears on the status bar)

wdCapsLockReturns True if Caps Lock is in effect.
wdNumLockReturns True if Num Lock is in effect.
wdOverTypeReturns True if Overtype mode is in effect. The Overtype property can be used to change the state of the Overtype mode.
wdRevisionMarkingReturns True if change tracking is in effect.
wdInFootnoteEndnotePaneReturns True if the specified selection or range is in the footnote or endnote pane in normal view or in a footnote or endnote area in print layout view. For more information, see the descriptions of wdInFootnote and wdInEndnote in the preceding paragraphs.
wdInCommentPaneReturns True if the specified selection or range is in a comment pane.
wdInHeaderFooterReturns True if the selection or range is in the header or footer pane or in a header or footer in print layout view.
wdAtEndOfRowMarkerReturns True if the specified selection or range is at the end-of-row mark in a table.
wdReferenceOfTypeReturns a value that indicates where the selection is in relation to a footnote, endnote, or comment reference, as shown in the following table.
ValueDescription
– 1The selection or range includes but isn't limited to a footnote, endnote, or comment reference.
0 (zero)The selection or range isn't before a footnote, endnote, or comment reference.
1The selection or range is before a footnote reference.
2The selection or range is before an endnote reference.
3The selection or range is before a comment reference.

wdHeaderFooterTypeReturns a value that indicates the type of header or footer that contains the specified selection or range, as shown in the following table.
ValueType of header or footer
- 1None (the selection or range isn't in a header or footer)
0 (zero)Even page header
1Odd page header (or the only header, if there aren't odd and even headers)
2Even page footer
3Odd page footer (or the only footer, if there aren't odd and even footers)
4First page header
5First page footer

wdInMasterDocumentReturns True if the selection or range is in a master document (that is, a document that contains at least one subdocument).
wdInFootnoteReturns True if the specified selection or range is in a footnote area in print layout view or in the footnote pane in normal view.
wdInEndnoteReturns True if the specified selection or range is in an endnote area in print layout view or in the endnote pane in normal view.
wdInWordMailReturns True if the selection or range is in the header or footer pane or in a header or footer in print layout view.
ValueLocation
0(zero)The selection or range isn't in an e-mail message.
1The selection or range is in an e-mail message you are sending.
2The selection or range is in an e-mail you are reading.

wdInClipboardFor information about this constant, consult the language reference Help included with Microsoft Office Macintosh Edition.

Community Additions

ADD
Show:
© 2014 Microsoft