Sdl.MultiTerm.TMO.Interop.EntryContent class
Name
Sdl.MultiTerm.TMO.Interop.EntryContent — Provides programmatic access to the content of an entry.
Description
Via this class you can retrieve the content of a particular entry, either fully or partially, e.g. only a specific indexes or descriptive fields.
Properties
- Content: Provides programmatic access to the content of a particular entry.
- EntryClass: Returns the entry class of a particular entry.
- EntryIndexes: Provides programmatic access to the indexes contained in a particular entry.
- Fields: Provides access to the descriptive fields of a particular entry.
Methods
- Refresh: Refreshes the content of the current entry.
- Update: Updates the content of a particular entry.
Sample
//select termbase
Termbase oTb = oTbs["Termbase name"];
Entries oEntries = oTb.Entries;
//select entry
Entry oEntry = oEntries.Item(1);
EntryContent content = oEntry.Content;
//output entry content
Debug.WriteLine(content.Content);
Debug.WriteLine("Number of entry indexes: " + content.EntryIndexes.Count.ToString());