Edit

Share via


SynonymInfo Interface

Definition

Represents the information about synonyms, antonyms, related words, or related expressions for the specified range or a given string.

public interface class SynonymInfo
[System.Runtime.InteropServices.Guid("0002099B-0000-0000-C000-000000000046")]
public interface SynonymInfo
type SynonymInfo = interface
Public Interface SynonymInfo
Attributes

Remarks

Use the SynonymInfo property of a Range or Application object to return a SynonymInfo object. The SynonymInfo object can be returned either from a range or from Microsoft Word. If it's returned from Word, you specify the lookup word or phrase and a proofing language ID. If it's returned from a range, Word uses the specified range as the lookup word.

Many of the properties of the SynonymInfo object return an Object that contains an array of strings. When working with these properties, you can assign the returned array to a variable and then index the variable to see the elements in the array.

You can check the value of the MeaningCount property to prevent potential errors in your code.

Properties

AntonymList

Returns a list of antonyms for the word or phrase. The list is returned as an array of strings.

Application

Returns a Application object that represents the Microsoft Word application.

Creator

Returns a 32-bit integer that indicates the application in which the specified object was created.

Found

True if the thesaurus finds synonyms, antonyms, related words, or related expressions for the word or phrase.

MeaningCount

Returns the number of entries in the list of meanings found in the thesaurus for the word or phrase. Returns 0 (zero) if no meanings were found.

MeaningList

Returns the list of meanings for the word or phrase. The list is returned as an array of strings.

Parent

Returns an object that represents the parent object of the specified object.

PartOfSpeechList

Returns a list of the parts of speech corresponding to the meanings found for the word or phrase looked up in the thesaurus. The list is returned as an array of integers.

RelatedExpressionList

Returns a list of expressions related to the specified word or phrase. The list is returned as an array of strings.

RelatedWordList

Returns a list of words related to the specified word or phrase. The list is returned as an array of strings.

SynonymList[Object]

Returns a list of synonyms for a specified meaning of a word or phrase. The list is returned as an array of strings.

Word

Returns the word or phrase that was looked up by the thesaurus.

Applies to