Class LocalizedTextPropertyCollection
Represents all the localized textproperties and their localizations of a EntityObject
Implements
Inherited Members
Namespace: TimeCockpit.Data.Localization
Assembly: TimeCockpit.Data.dll
Syntax
public class LocalizedTextPropertyCollection : DynamicObject, IDynamicMetaObjectProvider, IDictionary<string, LocalizedProperty>, ICollection<KeyValuePair<string, LocalizedProperty>>, IEnumerable<KeyValuePair<string, LocalizedProperty>>, IEnumerable
Properties
Count
Gets the count.
Declaration
public int Count { get; }
Property Value
Type | Description |
---|---|
System.Int32 | The count. |
Implements
IsReadOnly
Gets a value indicating whether this instance is read only.
Declaration
public bool IsReadOnly { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
Implements
Item[String]
Gets or sets the LocalizedProperty with the specified key.
Declaration
public LocalizedProperty this[string key] { get; set; }
Parameters
Type | Name | Description |
---|---|---|
System.String | key | The key. |
Property Value
Type | Description |
---|---|
LocalizedProperty | The LocalizedProperty. |
Implements
Keys
Gets the keys.
Declaration
public ICollection<string> Keys { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.ICollection<System.String> | The keys. |
Implements
Values
Gets the values.
Declaration
public ICollection<LocalizedProperty> Values { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.ICollection<LocalizedProperty> | The values. |
Implements
Methods
Add(KeyValuePair<String, LocalizedProperty>)
Adds the specified item.
Declaration
public void Add(KeyValuePair<string, LocalizedProperty> item)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.KeyValuePair<System.String, LocalizedProperty> | item | The item. |
Implements
Add(String, LocalizedProperty)
Adds the specified key.
Declaration
public void Add(string key, LocalizedProperty value)
Parameters
Type | Name | Description |
---|---|---|
System.String | key | The key. |
LocalizedProperty | value | The value. |
Implements
Clear()
Clears this instance.
Declaration
public void Clear()
Implements
Contains(KeyValuePair<String, LocalizedProperty>)
Determines whether [contains] [the specified item].
Declaration
public bool Contains(KeyValuePair<string, LocalizedProperty> item)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.KeyValuePair<System.String, LocalizedProperty> | item | The item. |
Returns
Type | Description |
---|---|
System.Boolean |
|
Implements
ContainsKey(String)
Determines whether the specified key contains key.
Declaration
public bool ContainsKey(string key)
Parameters
Type | Name | Description |
---|---|---|
System.String | key | The key. |
Returns
Type | Description |
---|---|
System.Boolean |
|
Implements
CopyTo(KeyValuePair<String, LocalizedProperty>[], Int32)
Copies to.
Declaration
public void CopyTo(KeyValuePair<string, LocalizedProperty>[] array, int arrayIndex)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.KeyValuePair<System.String, LocalizedProperty>[] | array | The array. |
System.Int32 | arrayIndex | Index of the array. |
Implements
GetEnumerator()
Gets the enumerator.
Declaration
public IEnumerator<KeyValuePair<string, LocalizedProperty>> GetEnumerator()
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerator<System.Collections.Generic.KeyValuePair<System.String, LocalizedProperty>> | An instance of an enumerator. |
Implements
GetMember(String)
Gets the value of a CLR property.
Declaration
public override object GetMember(string name)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | Name of the member to get. |
Returns
Type | Description |
---|---|
System.Object | Reference to the dynamic member. |
Overrides
Remove(KeyValuePair<String, LocalizedProperty>)
Removes the specified item.
Declaration
public bool Remove(KeyValuePair<string, LocalizedProperty> item)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.KeyValuePair<System.String, LocalizedProperty> | item | The item. |
Returns
Type | Description |
---|---|
System.Boolean | true if removed successfully, else false |
Implements
Remove(String)
Removes the specified key.
Declaration
public bool Remove(string key)
Parameters
Type | Name | Description |
---|---|---|
System.String | key | The key. |
Returns
Type | Description |
---|---|
System.Boolean | true if removed else false |
Implements
TryGetValue(String, out LocalizedProperty)
Tries the get value.
Declaration
public bool TryGetValue(string key, out LocalizedProperty value)
Parameters
Type | Name | Description |
---|---|---|
System.String | key | The key. |
LocalizedProperty | value | The value. |
Returns
Type | Description |
---|---|
System.Boolean | true if element was found else false |
Implements
Explicit Interface Implementations
IEnumerable.GetEnumerator()
Returns an enumerator that iterates through a collection.
Declaration
IEnumerator IEnumerable.GetEnumerator()
Returns
Type | Description |
---|---|
System.Collections.IEnumerator | An System.Collections.IEnumerator object that can be used to iterate through the collection. |