Table of Contents

Class TranslationIndexer

Inheritance
TranslationIndexer
Implements
Inherited Members
Namespace
TabularEditor.TOMWrapper
Assembly
TOMWrapper.dll
[TypeConverter(typeof(IndexerConverter))]
public sealed class TranslationIndexer : IEnumerable<string>, IEnumerable
Extension Methods

Properties

DefaultValue

public string DefaultValue { get; }

Property Value

Type Description
string

IsEmpty

public bool IsEmpty { get; }

Property Value

Type Description
bool

this[string]

public string this[string cultureName] { get; set; }

Parameters

Type Name Description
string cultureName

Property Value

Type Description
string

this[Culture]

public string this[Culture culture] { get; set; }

Parameters

Type Name Description
Culture culture

Property Value

Type Description
string

Keys

public IEnumerable<string> Keys { get; }

Property Value

Type Description
IEnumerable<string>

Summary

public string Summary { get; }

Property Value

Type Description
string

TranslatedCount

public int TranslatedCount { get; }

Property Value

Type Description
int

Methods

Clear()

Clears all translated values for the object.

public void Clear()

Contains(Culture)

public bool Contains(Culture culture)

Parameters

Type Name Description
Culture culture

Returns

Type Description
bool

Copy()

public Dictionary<string, string> Copy()

Returns

Type Description
Dictionary<string, string>

CopyFrom(IDictionary<string, string>)

public void CopyFrom(IDictionary<string, string> source)

Parameters

Type Name Description
IDictionary<string, string> source

CopyFrom(TranslationIndexer, Func<string, string>)

Copy translations from another translation collection.

public void CopyFrom(TranslationIndexer translations, Func<string, string> mutator = null)

Parameters

Type Name Description
TranslationIndexer translations
Func<string, string> mutator

GetDisplayName(string)

Gets the value to display for a given key. Note, this is not the value of the object represented by the key.

public string GetDisplayName(string key)

Parameters

Type Name Description
string key

Returns

Type Description
string

GetEnumerator()

public IEnumerator<string> GetEnumerator()

Returns

Type Description
IEnumerator<string>

GetTranslatedCultures()

public IEnumerable<Culture> GetTranslatedCultures()

Returns

Type Description
IEnumerable<Culture>

Refresh()

public void Refresh()

Reset()

Resets the translations of the object. Caption translations are removed, making the object appear with the base name in all locales. Display Folder and Description translations are set to the untranslated value of the object.

public void Reset()

SetAll(string)

Sets all translations to the specified value.

public void SetAll(string value)

Parameters

Type Name Description
string value

ToJson()

public string ToJson()

Returns

Type Description
string