Class LocalizedString
- Assembly
- TimeCockpit.Data.dll
class representing a string localization for a string used in the model (e.g. FriendlyName, BackReferenceFriendlyName, etc)
public class LocalizedString
- Inheritance
-
ObjectLocalizedString
- Inherited Members
-
Object.ToString()Object.Equals(Object)Object.Equals(Object, Object)Object.ReferenceEquals(Object, Object)Object.GetHashCode()Object.GetType()Object.MemberwiseClone()
Constructors
LocalizedString(String, String, Boolean)
Initializes a new instance of the LocalizedString class.
public LocalizedString(string culture, string text, bool dirty)
Parameters
cultureStringthe culture key this string localization is for.
textStringthe text.
dirtyBooleantrue if the string should be marked as dirty.
LocalizedString(LocalizedString)
Initializes a new instance of the LocalizedString class. Copy Constructor.
public LocalizedString(LocalizedString source)
Parameters
sourceLocalizedStringthe source to copy from.
Properties
Culture
Gets the culture of the localized string.
public string Culture { get; }
Property Value
- String
Dirty
Gets a value indicating whether this localized string has been updated.
public bool Dirty { get; }
Property Value
- Boolean
Text
Gets or sets the localized text. Marks the instance as dirty.
public string Text { get; set; }
Property Value
- String
Methods
ClearDirtyFlag()
Clears the dirty flag.
public void ClearDirtyFlag()