Compartilhar via


ISmartTagExtension.Recognize Method

Definition

Searches text in the cell 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..

public:
 void Recognize(System::String ^ text, Microsoft::Office::Interop::SmartTag::ISmartTagRecognizerSite ^ site, Microsoft::Office::Interop::SmartTag::ISmartTagTokenList ^ tokenList, Microsoft::Office::Tools::Excel::SmartTagRecognizeContext ^ context);
public void Recognize (string text, Microsoft.Office.Interop.SmartTag.ISmartTagRecognizerSite site, Microsoft.Office.Interop.SmartTag.ISmartTagTokenList tokenList, Microsoft.Office.Tools.Excel.SmartTagRecognizeContext context);
abstract member Recognize : string * Microsoft.Office.Interop.SmartTag.ISmartTagRecognizerSite * Microsoft.Office.Interop.SmartTag.ISmartTagTokenList * Microsoft.Office.Tools.Excel.SmartTagRecognizeContext -> unit
Public Sub Recognize (text As String, site As ISmartTagRecognizerSite, tokenList As ISmartTagTokenList, context As SmartTagRecognizeContext)

Parameters

text
String

The text to search for recognized terms.

site
ISmartTagRecognizerSite

The location of the text in the workbook or document.

tokenList
ISmartTagTokenList

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

context
SmartTagRecognizeContext

An object that provides the text from the cell that is sent to the recognizer and a method you can call to indicate that the smart tag was found.

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.

Applies to