Class TranslationIndexer
Inheritance
TranslationIndexer
Assembly: TOMWrapper.dll
Syntax
[TypeConverter(typeof(IndexerConverter))]
public sealed class TranslationIndexer : IEnumerable<string>, IEnumerable
Properties
DefaultValue
Declaration
public string DefaultValue { get; }
Property Value
IsEmpty
Declaration
public bool IsEmpty { get; }
Property Value
this[string]
Declaration
public string this[string cultureName] { get; set; }
Parameters
Type |
Name |
Description |
string |
cultureName |
|
Property Value
this[Culture]
Declaration
public string this[Culture culture] { get; set; }
Parameters
Type |
Name |
Description |
Culture |
culture |
|
Property Value
Keys
Declaration
public IEnumerable<string> Keys { get; }
Property Value
Summary
Declaration
public string Summary { get; }
Property Value
TranslatedCount
Declaration
public int TranslatedCount { get; }
Property Value
Methods
Clear()
Clears all translated values for the object.
Declaration
Contains(Culture)
Declaration
public bool Contains(Culture culture)
Parameters
Type |
Name |
Description |
Culture |
culture |
|
Returns
Copy()
Declaration
public Dictionary<string, string> Copy()
Returns
CopyFrom(IDictionary<string, string>)
Declaration
public void CopyFrom(IDictionary<string, string> source)
Parameters
CopyFrom(TranslationIndexer, Func<string, string>)
Copy translations from another translation collection.
Declaration
public void CopyFrom(TranslationIndexer translations, Func<string, string> mutator = null)
Parameters
GetDisplayName(string)
Gets the value to display for a given key. Note, this is not the value of the object represented by the key.
Declaration
public string GetDisplayName(string key)
Parameters
Type |
Name |
Description |
string |
key |
|
Returns
GetEnumerator()
Declaration
public IEnumerator<string> GetEnumerator()
Returns
GetTranslatedCultures()
Declaration
public IEnumerable<Culture> GetTranslatedCultures()
Returns
Refresh()
Declaration
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.
Declaration
SetAll(string)
Sets all translations to the specified value.
Declaration
public void SetAll(string value)
Parameters
Type |
Name |
Description |
string |
value |
|
ToJson()
Declaration
Returns
Implements
Extension Methods