Terms Property

The Terms property enables you to add terms (individual words you want recognized) to the smart tag. Note that they must be individual words, because terms cannot contain spaces. In the example in Listing 9.4, the added terms include "ComboBox" but not "combo box." We did this for two reasons: The control name itself does not have a space, and the Terms property recognizes only a single word. If you want to add a phrase to be recognized, you can either create a regular expression or create your own recognizer. Both techniques are discussed later in this chapter.

0 0

Post a comment