18. Working with Smart Tags in VSTO

Introduction to Smart Tags

The Smart Tags feature of Word and Excel enables you to display a pop-up menu with actions for a given piece of text in a document or spreadsheet. For example, a Smart Tag could recognize stock symbols (such as the MSFT stock symbol) and display a set of actions that can be taken for that symbol. When Word finds a piece of text that a Smart Tag has recognized, it displays a red dotted line under the recognized text. If the user hovers over the text, a pop-up menu icon appears next to the cell, as shown in Figure 18-1. If the user clicks the pop-up menu icon, a menu of actions displays for the recognized piece of text, as shown in Figure 18-2. When an action is selected, Word calls ...

Get Visual Studio Tools for Office 2007: VSTO for Excel, Word, and Outlook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.