Search Results for

    Show / Hide Table of Contents

    Text property

    Name

    Sdl.MultiTerm.TMO.Interop.HitTerm.Text — Returns the actual hit term.

    Type

    String (read)

    Index Parameters

    none

    Description

    This property is used to return the actual hit term content. This is probably the most frequently used property of the HitTerm class, as it is used to generate the hit term list.

    Sample

    Termbase oTb = oTbs["Termbase name"];
    TermbaseSearch oSearch = oTb.Search;
    oSearch.Direction=Sdl.MultiTerm.TMO.Interop.MtSearchDirection.mtSearchDown;
    oSearch.MaximumHits=10;
    oSearch.SourceIndex="English";
    oSearch.SearchExpression ="starship";
    
    HitTerms oHits = oSearch.Execute();
    HitTerm oHit;
    
    Entries oEntries = oTb.Entries;
    
    //generate hit list
    for(int i=0;i<oHits.Count;i++)
    {
       	oHit = oHits[i];				
       	Debug.WriteLine(oHit.Text);
    }
    
    • Improve this Doc
    In this article
    Back to top Generated by DocFX