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
Implements
Inherited Members
Namespace: SdlSdl.LanguagePlatformTranslationMemoryApi
Assembly: Sdl.LanguagePlatform.TranslationMemoryApi.dll
Syntax
public class ServerBasedTranslationMemoryLanguageDirectionCollection : ObservableCollection<ServerBasedTranslationMemoryLanguageDirection>, IList<ServerBasedTranslationMemoryLanguageDirection>, ICollection<ServerBasedTranslationMemoryLanguageDirection>, IList, ICollection, IReadOnlyList<ServerBasedTranslationMemoryLanguageDirection>, IReadOnlyCollection<ServerBasedTranslationMemoryLanguageDirection>, IEnumerable<ServerBasedTranslationMemoryLanguageDirection>, IEnumerable, INotifyCollectionChanged, INotifyPropertyChanged
Methods
ClearItems()
Removes all items from the collection.
Declaration
protected override void ClearItems()
Overrides
GetLanguageDirection(CultureCode, CultureCode)
Gets the language direction with the specified source and target language.
Declaration
public ServerBasedTranslationMemoryLanguageDirection GetLanguageDirection(CultureCode sourceLanguage, CultureCode targetLanguage)
Parameters
Type | Name | Description |
---|---|---|
CultureCode | sourceLanguage | A source language. |
CultureCode | 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 |
---|---|---|
string | sourceLanguageCode | A source language code. |
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(int, ServerBasedTranslationMemoryLanguageDirection)
Inserts an item into the collection at the specified index.
Declaration
protected override void InsertItem(int index, ServerBasedTranslationMemoryLanguageDirection item)
Parameters
Type | Name | Description |
---|---|---|
int | index | The zero-based index at which |
ServerBasedTranslationMemoryLanguageDirection | item | The object to insert. |
Overrides
RemoveItem(int)
Removes the item at the specified index of the collection.
Declaration
protected override void RemoveItem(int index)
Parameters
Type | Name | Description |
---|---|---|
int | index | The zero-based index of the element to remove. |