Class TranslationValueEventArgs
- Namespace
- Tlumach
- Assembly
- Tlumach.dll
Contains the arguments of the TranslationValueNeeded, TranslationValueFound, and TranslationValueNotFound events.
public class TranslationValueEventArgs : EventArgs
- Inheritance
-
TranslationValueEventArgs
- Inherited Members
Constructors
TranslationValueEventArgs(CultureInfo, string)
public TranslationValueEventArgs(CultureInfo culture, string key)
Parameters
cultureCultureInfokeystring
Properties
Culture
Gets a reference to the culture, for which the text is needed.
public CultureInfo Culture { get; }
Property Value
Entry
May be set to the instance of the TranslationEntry class that corresponds to the specified Key and Culture and contains the requested text; alternatively, Text may be set.
public TranslationEntry? Entry { get; set; }
Property Value
EscapedText
May be set to the escaped text value that corresponds to the specified Key and Culture; alternatively, Entry may be set. This parameter may be set instead of Text, in which case, it will be un-escaped and also will be used during template processing (if required).
public string? EscapedText { get; set; }
Property Value
Key
Gets the key of the requested translation entry.
public string Key { get; }
Property Value
Text
Should be set to the text value that corresponds to the specified Key and Culture; alternatively, EscapedText or Entry may be set.
public string? Text { get; set; }