ISmartTagExtension.Recognize Method

Searches text in the document for recognized terms. This type or member is intended to be used only in projects for the 2007 Microsoft Office system. Smart tags are deprecated in Office 2010. .

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

Syntax

'Declaration
Sub Recognize ( _
    text As String, _
    site As ISmartTagRecognizerSite, _
    tokenList As ISmartTagTokenList, _
    context As SmartTagRecognizeContext _
)
void Recognize(
    string text,
    ISmartTagRecognizerSite site,
    ISmartTagTokenList tokenList,
    SmartTagRecognizeContext context
)

Parameters

  • text
    Type: System.String

    The text to search for recognized terms.

  • site
    Type: Microsoft.Office.Interop.SmartTag.ISmartTagRecognizerSite

    The location of the text in the workbook or document.

  • tokenList
    Type: Microsoft.Office.Interop.SmartTag.ISmartTagTokenList

    The text to search for recognized terms, broken down into a list of tokens.

Remarks

This method is called by the Visual Studio Tools for Office runtime to search text for recognized terms. Implement this method if you want to incorporate your own search algorithms to run in addition to the standard recognizers.

To view a code example, see the Microsoft Visual Studio 2008/.NET Framework 3.5 version of this topic.

.NET Framework Security

See Also

Reference

ISmartTagExtension Interface

Microsoft.Office.Tools.Word Namespace