Sdl.MultiTerm.TMO.Interop.LayoutDefinition class
Name
Sdl.MultiTerm.TMO.Interop.LayoutDefinition — Provides programmatic access to a particular layout definition.
Description
Layouts basically contain an XSL stylesheet, which renders MultiTerm entry XML as HTML. Via this class you can retrieve information on a particular layout, e.g. the layout description, the content (i.e. the layout 'source code'), etc. In addition you can also use this class to edit an existing layout using the layout wizard.
Properties
- Content: Returns the layout definition content.
- Description: Returns the layout description.
- ID: Returns the unique id of the layout.
- Name: Returns the name of the layout.
- Owner: Returns the owner name for a particular layout definition.
- ReadOnly: Returns whether a particular layout is read-only.
Methods
- Delete: Removes the layout from the collection.
- Load: Updates the selected layout from an external layout definition file.
- Save: Saves the layout definition to an external file.
- StartWizard: Calls up the layout definition wizard for editing a particular layout.
Sample
//select termbase
Termbase oTb = oTbs["Termbase name"];
//select layout
LayoutDefinitions oLayouts = oTb.LayoutDefinitions;
LayoutDefinition oLayout = oLayouts["Flags layout"];
Debug.WriteLine(oLayout.Description);