Partager via


Find.MatchWholeWord Property

Determines if the find operation locates only entire words and not text that's part of a larger word.

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

Syntax

'Declaration
Property MatchWholeWord As Boolean
    Get
    Set
'Usage
Dim instance As Find
Dim value As Boolean

value = instance.MatchWholeWord

instance.MatchWholeWord = value
bool MatchWholeWord { get; set; }

Property Value

Type: System.Boolean

Remarks

This property returns True if the find operation locates only entire words and not text that's part of a larger word, and False if not. Set the property value to True or False to enable or disable the functionality.

Use the Text property of the Find object or the FindText argument with the Execute method to specify the text to be located in a document.

See Also

Reference

Find Interface

Find Members

Microsoft.Office.Interop.Word Namespace