Search Results for

    Show / Hide Table of Contents

    Class ServerBasedTranslationMemoryLanguageDirectionCollection

    Represents the collection of language directions of a server-based translation memory (ServerBasedTranslationMemory). Language directions can be added to and removed from this collection. In order to persist these changes you should save the translation memory itself (see Save()).

    Saving a translation memory after adding or removing language directions will result in the corresponding physical bilingual translation memories being added to or deleted from the container which hosts the server-based translation memory.

    All the language directions in a given translation memory should have a unique source-target language combination. Multiple source language are supported.

    Inheritance
    System.Object
    ServerBasedTranslationMemoryLanguageDirectionCollection
    Namespace: Sdl.LanguagePlatform.TranslationMemoryApi
    Assembly: Sdl.LanguagePlatform.TranslationMemoryApi.dll
    Syntax
    public class ServerBasedTranslationMemoryLanguageDirectionCollection : ObservableCollection<ServerBasedTranslationMemoryLanguageDirection>

    Methods

    ClearItems()

    Removes all items from the collection.

    Declaration
    protected override void ClearItems()

    GetLanguageDirection(CultureInfo, CultureInfo)

    Gets the language direction with the specified source and target language.

    Declaration
    public ServerBasedTranslationMemoryLanguageDirection GetLanguageDirection(CultureInfo sourceLanguage, CultureInfo targetLanguage)
    Parameters
    Type Name Description
    System.Globalization.CultureInfo sourceLanguage

    A source language.

    System.Globalization.CultureInfo targetLanguage

    A target language.

    Returns
    Type Description
    ServerBasedTranslationMemoryLanguageDirection

    The language direction matching the specified source and target language; or null if no such language direction exists.

    GetLanguageDirection(String, String)

    Gets the language direction with the specified source and target language code.

    Declaration
    public ServerBasedTranslationMemoryLanguageDirection GetLanguageDirection(string sourceLanguageCode, string targetLanguageCode)
    Parameters
    Type Name Description
    System.String sourceLanguageCode

    A source language code.

    System.String targetLanguageCode

    A target language code.

    Returns
    Type Description
    ServerBasedTranslationMemoryLanguageDirection

    The language direction matching the specified source and target language; or null if no such language direction exists.

    InsertItem(Int32, ServerBasedTranslationMemoryLanguageDirection)

    Inserts an item into the collection at the specified index.

    Declaration
    protected override void InsertItem(int index, ServerBasedTranslationMemoryLanguageDirection item)
    Parameters
    Type Name Description
    System.Int32 index

    The zero-based index at which item should be inserted.

    ServerBasedTranslationMemoryLanguageDirection item

    The object to insert.

    RemoveItem(Int32)

    Removes the item at the specified index of the collection.

    Declaration
    protected override void RemoveItem(int index)
    Parameters
    Type Name Description
    System.Int32 index

    The zero-based index of the element to remove.

    On this page

    • Methods
      • ClearItems()
      • GetLanguageDirection(CultureInfo, CultureInfo)
      • GetLanguageDirection(String, String)
      • InsertItem(Int32, ServerBasedTranslationMemoryLanguageDirection)
      • RemoveItem(Int32)
    Back to top Generated by DocFX