#FormatCollection
##Properties
| Datatype | Property name | Property description | Default Value |
|---|---|---|---|
| String[] | AllKeys | Gets a System.String array of all the keys for the collection. | [] |
| Array | AllValues | Gets an array of Izenda.AdHoc.IFormat objects that correspond to the values in the collection. | [] |
| Int32 | Count | Gets the number of key/value pairs contained in the System.Collections.Specialized.NameObjectCollectionBase instance. | 0 |
| Boolean | HasKeys | Determines whether the collection contains entries whose keys are not null. | False |
| String | Item | Gets or sets the element with the specified key. | null |
| KeysCollection | Keys | Gets a System.Collections.Specialized.KeysCollection instance that contains all the keys in the System.Collections.Specialized.NameObjectCollectionBase instance. | {} |
##Methods
###Add(System.String,Izenda.AdHoc.IFormat) Adds an entry with the specified key and value into the Izenda.AdHoc.FormatCollection instance.
Parameters:
- System.String key - The System.String key of the entry to set. The key can be null.
- Izenda.AdHoc.IFormat value - The Izenda.AdHoc.IFormat that represents the new value of the entry to set. The value can be null.
###Add(System.String,System.String) Adds an entry with the specified key and value into the Izenda.AdHoc.FormatCollection instance.
Parameters:
- System.String key - The System.String key of the entry to set. The key can be null.
- System.String value - The System.String format string that will be used as the new value of the entry. The value can be null.
###Clear() Removes all entries from the System.Collections.Specialized.NameObjectCollectionBase instance.
###Equals(System.Object) Determines whether the specified System.Object is equal to the current System.Object.
Parameters:
- System.Object obj - The System.Object to compare with the current System.Object.
Returns:
true if the specified System.Object is equal to the current System.Object; otherwise, false.
###Get(System.String) Gets the value of the first entry with the specified key from the Izenda.AdHoc.FormatCollection instance.
Parameters:
- System.String key - The System.String key of the entry to get. The key can be null.
Returns:
A Izenda.AdHoc.IFormat that represents the value of the first entry with the specified key if found; otherwise, null.
###GetEnumerator() Returns an enumerator that iterates through the System.Collections.Specialized.NameObjectCollectionBase.
Returns:
An System.Collections.IEnumerator for the System.Collections.Specialized.NameObjectCollectionBase instance.
###GetHashCode() Serves as a hash function for a particular type.
Returns:
A hash code for the current System.Object.
###GetObjectData(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext) Implements the System.Runtime.Serialization.ISerializable interface and returns the data needed to serialize the System.Collections.Specialized.NameObjectCollectionBase instance.
Parameters:
- System.Runtime.Serialization.SerializationInfo info - A System.Runtime.Serialization.SerializationInfo object that contains the information required to serialize the System.Collections.Specialized.NameObjectCollectionBase instance.
- System.Runtime.Serialization.StreamingContext context - A System.Runtime.Serialization.StreamingContext object that contains the source and destination of the serialized stream associated with the System.Collections.Specialized.NameObjectCollectionBase instance.
###GetType() Gets the System.Type of the current instance.
Returns:
The System.Type instance that represents the exact runtime type of the current instance.
###OnDeserialization(System.Object) Implements the System.Runtime.Serialization.ISerializable interface and raises the deserialization event when the deserialization is complete.
Parameters:
- System.Object sender - The source of the deserialization event.
###Remove(System.String) Removes the entries with the specified key from the Izenda.AdHoc.FormatCollection instance.
Parameters:
- System.String key - The System.String key of the entries to remove. The key can be null.
###Remove(System.Int32) Removes the entry at the specified index of the Izenda.AdHoc.FormatCollection instance.
Parameters:
- System.Int32 index - The zero-based index of the entry to remove.
###Set(System.String,Izenda.AdHoc.IFormat) Sets the value of the first entry with the specified key, if found, in the Izenda.AdHoc.FormatCollection instance. Otherwise, adds an entry with the specified key and value into the Izenda.AdHoc.FormatCollection instance.
Parameters:
- System.String key - The System.String key of the entry to set. The key can be null.
- Izenda.AdHoc.IFormat value - The System.Object that represents the new value of the entry to set. The value can be null.
###ToString() Returns a System.String that represents the current System.Object.
Returns:
A System.String that represents the current System.Object.
