Class LocalizedTextElement
A localized text element.
Inheritance
Implements
Inherited Members
Namespace: Unity.AppUI.UI
Assembly: Unity.AppUI.dll
Syntax
public class LocalizedTextElement : BaseTextElement, IEventHandler, IVisualElementScheduler, IExperimentalFeatures, ITransitionAnimations, ITransform, IResolvedStyle, IBindable, INotifyValueChanged<string>, IContextOverrideElement, IAdditionalDataHolder
Constructors
LocalizedTextElement()
Default constructor.
Declaration
public LocalizedTextElement()
LocalizedTextElement(string)
Constructor with a reference text.
Declaration
public LocalizedTextElement(string text)
Parameters
Type | Name | Description |
---|---|---|
string | text | The reference text to use when formatting the localized string. You can also use plain text for no translation. |
Fields
ussClassName
The main USS class name of this element.
Declaration
public const string ussClassName = "appui-localized-text"
Field Value
Type | Description |
---|---|
string |
Properties
text
The reference text to use when formatting the localized string. You can also use plain text for no translation.
Declaration
public string text { get; set; }
Property Value
Type | Description |
---|---|
string |
variables
The variables to use when formatting the localized string.
Declaration
public IList<object> variables { get; set; }