#ToolbarItemsCollection
##Properties
| Datatype | Property name | Property description | Default Value |
|---|---|---|---|
| String[] | AllKeys | Gets a String array that contains all the keys in the collection. | [] |
| Array | AllValues | Gets an Object array that contains all 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 | Gets a value indicating if the collection contains keys that are not null. | False |
| DictionaryEntry | Item | Gets a key-and-value pair (DictionaryEntry) using an index. | null |
| ToolbarItem | Item | Gets or sets the value associated 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. | {} |
| Toolbar | ParentToolbar | Gets or sets the toolbar that this collection belongs to. | null |
##Methods
###Add(System.String,Izenda.Web.UI.ToolbarItem) Adds an entry to the collection.
Parameters:
- System.String key
- Izenda.Web.UI.ToolbarItem value
###Clear() Clears all the elements in the collection.
###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.
###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.
###IndexOf(System.String)
Parameters:
- System.String key
###Insert(System.Int32,System.String,Izenda.Web.UI.ToolbarItem) Insert into collection at specificied index.
Parameters:
- System.Int32 index
- System.String key
- Izenda.Web.UI.ToolbarItem value
###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 an entry with the specified key from the collection.
Parameters:
- System.String key
###ToString() Returns a System.String that represents the current System.Object.
Returns:
A System.String that represents the current System.Object.
