TextRetrievalMode Object
Multiple objects TextRetrievalMode TextRetrievalMode |
Represents options that control how text is retrieved from a Range object.
Using the TextRetrievalMode Object
Use the TextRetrievalMode property to return a TextRetrievalMode object. The following example displays the text of the first sentence in the active document, excluding field codes and hidden text.
With ActiveDocument.Sentences(1).TextRetrievalMode
.IncludeHiddenText = False
.IncludeFieldCodes = False
MsgBox .Parent.Text
End With
Remarks
Changing the ViewType , IncludeHiddentText , or IncludeFieldCodes property of the TextRetrievalMode object doesn't change the screen display. Instead, changing one of these properties determines what text is retrieved from a Range object when the Text property is used.
Properties | Application Property | Creator Property | Duplicate Property | IncludeFieldCodes Property | IncludeHiddenText Property | Parent Property | ViewType Property
Parent Objects | Range Object | TextRetrievalMode Object
Child Objects | TextRetrievalMode Object