Search Results for

    Show / Hide Table of Contents

    Sdl.MultiTerm.TMO.Interop.Homonym class

    Name

    Sdl.MultiTerm.TMO.Interop.Homonym — Provides programmatic access to a particular homonym in the termbase.

    Description

    Via this class you can retrieve information on a selected homonym term. This will usually be the actual term itself and the entry number.

    The sample code below retrieves all homonyms from the "English" index, then selects the first homonym term and then the second.

    Note that via referring to the unique entry id, you can retrieve the content of an entire entry. This can be useful for implementing a function that lists all homonyms of a particular index. By clicking a homonym entry id, the user can display the entire entry and thus ascertain whether the homonym is a (redundant) duplicate or is a real homonym, i.e. the same term having different meanings (e.g. 'book' a flight and read a 'book').

    Properties

    • EntryID: Returns the entry id of a particular homonym.
    • Index: Returns the index the homonym term was found in.
    • Term: Returns the homonym term.

    Methods

    None

    Sample

    Termbase oTb = oTbs["Termbase name"];
    
    Homonyms oHomonyms = oTb.GetHomonyms("English", "","");
    
    //select first homonym term
    Homonym oHomonym = oHomonyms[0];
    Debug.Write("Homonym term: " + oHomonym.Term);
    Debug.Write("Homonym entry id: " + oHomonym.EntryID.ToString());
    
    //select second homonym term
    oHomonym = oHomonyms[1];
    Debug.Write("Homonym term: " + oHomonym.Term);
    Debug.Write("Homonym entry id: " + oHomonym.EntryID.ToString());
    
    • Improve this Doc
    In this article
    Back to top Generated by DocFX