Class TranslateTextValue
Simple implementation of ITranslateFormat to support text / value pairs
Inheritance
System.Object
TranslateTextValue
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: EPiServer.Core
Assembly: EPiServer.Cms.AspNet.dll
Version: 11.20.7Syntax
public class TranslateTextValue : ITranslateFormat, ITranslate
Constructors
TranslateTextValue(String, String)
Initializes a new instance of the TranslateTextValue class.
Declaration
public TranslateTextValue(string text, string val)
Parameters
Type | Name | Description |
---|---|---|
System.String | text | The text. |
System.String | val | The val. |
Properties
LocalizedText
Used to access the text that should be translated.
Declaration
public string LocalizedText { get; set; }
Property Value
Type | Description |
---|---|
System.String |
StringFormatObjects
Set object references if the localized text is a format string with "{n}" style instructions.
Declaration
public object[] StringFormatObjects { get; set; }
Property Value
Type | Description |
---|---|
System.Object[] |
Remarks
Simply return null from the getter if no object references are set.
Value
Gets the value associated with the text.
Declaration
public string Value { get; }
Property Value
Type | Description |
---|---|
System.String | The value. |