Search Results for

    Show / Hide Table of Contents

    Sdl.MultiTerm.TMO.Interop.FilterDefinition class

    Name

    Sdl.MultiTerm.TMO.Interop.FilterDefinition — Provides programmatic access to a particular filter definition.

    Description

    Filters contain an XPATH statement that gets applied to the MultiTerm entries, which are XML-based. If the XPATH statement fits the entry content, it returns true, if not it returns false. Via this class you can retrieve information on a particular filter, e.g. the filter description, the content (i.e. the filter source code'), etc. In addition you can also use this class to edit an existing filter using the filter wizard.

    Properties

    • Active: Activates a particular filter.
    • Content: Returns the filter definition content.
    • Description: Returns the filter description.
    • ID: Returns the unique id of the filter.
    • Name: Returns the name of the filter.
    • Owner: Returns the owner name for a particular filter definition.
    • ReadOnly: Returns whether a particular filter is read-only.

    Methods

    • Delete: Removes the filter from the collection.
    • Load: Updates the selected filter from an external filter definition file.
    • Save: Saves the filter definition to an external file.
    • StartWizard: Calls up the filter wizard for editing a particular filter.

    Sample

    //select termbase
    Termbase oTb = oTbs["Termbase name"];
    
    //select filter
    FilterDefinitions oFilters = oTb.FilterDefinitions;
    FilterDefinition oFilter = oFilters["Missing target"];
    
    Debug.WriteLine(oFilter.Description);
    
    • Improve this Doc
    In this article
    • Name
    • Description
    • Properties
    • Methods
    • Sample
    Back to top Generated by DocFX