Class AboutDialogButtonDescriptionCollection
A collection of Sartorius.SAF.Presentation.Controls.AboutDialog.IAboutDialogButtonDescriptions
Implements
Namespace: Sartorius.SAF.Presentation.Controls
Assembly: Sartorius.SAF.Presentation.Controls.dll
Syntax
public class AboutDialogButtonDescriptionCollection : IList<IAboutDialogButtonDescription>, ICollection<IAboutDialogButtonDescription>, IEnumerable<IAboutDialogButtonDescription>, INotifyPropertyChanged, INotifyCollectionChanged, IList, ICollection, IEnumerable
Constructors
View SourceAboutDialogButtonDescriptionCollection()
Initializes a new instance of the AboutDialogButtonDescriptionCollection class.
Declaration
public AboutDialogButtonDescriptionCollection()
AboutDialogButtonDescriptionCollection(IEnumerable<AboutDialogButtonDescription>)
Initializes a new instance of the AboutDialogButtonDescriptionCollection class with the specified items.
Declaration
public AboutDialogButtonDescriptionCollection(IEnumerable<AboutDialogButtonDescription> defaultButtons)
Parameters
| Type | Name | Description |
|---|---|---|
| IEnumerable<AboutDialogButtonDescription> | defaultButtons |
Properties
View SourceCount
Gets the number of elements contained in the ICollection.
Declaration
public int Count { get; }
Property Value
| Type | Description |
|---|---|
| int | The number of elements contained in the ICollection. |
IsReadOnly
Gets a value indicating whether the IList is read-only.
Declaration
public bool IsReadOnly { get; }
Property Value
| Type | Description |
|---|---|
| bool |
this[int]
Gets or sets the element at the specified index.
Declaration
public IAboutDialogButtonDescription this[int index] { get; set; }
Parameters
| Type | Name | Description |
|---|---|---|
| int | index | The zero-based index of the element to get or set. |
Property Value
| Type | Description |
|---|---|
| IAboutDialogButtonDescription | The element at the specified index. |
Exceptions
| Type | Condition |
|---|---|
| ArgumentOutOfRangeException |
|
| NotSupportedException | The property is set and the IList<T> is read-only. |
Methods
View SourceAdd(IAboutDialogButtonDescription)
Adds an item to the ICollection<T>.
Declaration
public void Add(IAboutDialogButtonDescription item)
Parameters
| Type | Name | Description |
|---|---|---|
| IAboutDialogButtonDescription | item | The object to add to the ICollection<T>. |
Exceptions
| Type | Condition |
|---|---|
| NotSupportedException | The ICollection<T> is read-only. |
Add(ICommand, string)
Adds the specified command.
Declaration
public void Add(ICommand command, string caption)
Parameters
| Type | Name | Description |
|---|---|---|
| ICommand | command | The command. |
| string | caption | The caption. |
Add(ICommand, string, Guid)
Adds the specified command.
Declaration
public void Add(ICommand command, string caption, Guid automationId)
Parameters
| Type | Name | Description |
|---|---|---|
| ICommand | command | The command. |
| string | caption | The caption. |
| Guid | automationId | The automation id. |
Clear()
Removes all items from the IList.
Declaration
public void Clear()
Exceptions
| Type | Condition |
|---|---|
| NotSupportedException | The IList is read-only. |
Contains(IAboutDialogButtonDescription)
Determines whether the ICollection<T> contains a specific value.
Declaration
public bool Contains(IAboutDialogButtonDescription item)
Parameters
| Type | Name | Description |
|---|---|---|
| IAboutDialogButtonDescription | item | The object to locate in the ICollection<T>. |
Returns
| Type | Description |
|---|---|
| bool | true if |
CopyTo(IAboutDialogButtonDescription[], int)
Copies the elements of the ICollection<T> to an Array, starting at a particular Array index.
Declaration
public void CopyTo(IAboutDialogButtonDescription[] array, int arrayIndex)
Parameters
| Type | Name | Description |
|---|---|---|
| IAboutDialogButtonDescription[] | array | The one-dimensional Array that is the destination of the elements copied from ICollection<T>. The Array must have zero-based indexing. |
| int | arrayIndex | The zero-based index in |
Exceptions
| Type | Condition |
|---|---|
| ArgumentNullException |
|
| ArgumentOutOfRangeException |
|
| ArgumentException | The number of elements in the source ICollection<T> is greater than the available space from |
GetEnumerator()
Returns an enumerator that iterates through the collection.
Declaration
public IEnumerator<IAboutDialogButtonDescription> GetEnumerator()
Returns
| Type | Description |
|---|---|
| IEnumerator<IAboutDialogButtonDescription> | An enumerator that can be used to iterate through the collection. |
IndexOf(IAboutDialogButtonDescription)
Determines the index of a specific item in the IList<T>.
Declaration
public int IndexOf(IAboutDialogButtonDescription item)
Parameters
| Type | Name | Description |
|---|---|---|
| IAboutDialogButtonDescription | item | The object to locate in the IList<T>. |
Returns
| Type | Description |
|---|---|
| int | The index of |
Insert(int, IAboutDialogButtonDescription)
Inserts an item to the IList<T> at the specified index.
Declaration
public void Insert(int index, IAboutDialogButtonDescription item)
Parameters
| Type | Name | Description |
|---|---|---|
| int | index | The zero-based index at which |
| IAboutDialogButtonDescription | item | The object to insert into the IList<T>. |
Exceptions
| Type | Condition |
|---|---|
| ArgumentOutOfRangeException |
|
| NotSupportedException | The IList<T> is read-only. |
OnPropertyChanged(string)
Raises the PropertyChanged event.
Declaration
protected virtual void OnPropertyChanged(string propertyName)
Parameters
| Type | Name | Description |
|---|---|---|
| string | propertyName | The name of the property that has been changed. |
Remove(IAboutDialogButtonDescription)
Removes the first occurrence of a specific object from the ICollection<T>.
Declaration
public bool Remove(IAboutDialogButtonDescription item)
Parameters
| Type | Name | Description |
|---|---|---|
| IAboutDialogButtonDescription | item | The object to remove from the ICollection<T>. |
Returns
| Type | Description |
|---|---|
| bool | true if |
Exceptions
| Type | Condition |
|---|---|
| NotSupportedException | The ICollection<T> is read-only. |
RemoveAt(int)
Removes the IList item at the specified index.
Declaration
public void RemoveAt(int index)
Parameters
| Type | Name | Description |
|---|---|---|
| int | index | The zero-based index of the item to remove. |
Exceptions
| Type | Condition |
|---|---|
| ArgumentOutOfRangeException |
|
| NotSupportedException | The IList is read-only. -or- The IList has a fixed size. |
Events
View SourceCollectionChanged
Occurs when the collection changes.
Declaration
public event NotifyCollectionChangedEventHandler CollectionChanged
Event Type
| Type | Description |
|---|---|
| NotifyCollectionChangedEventHandler |
PropertyChanged
Occurs when a property value changes.
Declaration
public event PropertyChangedEventHandler PropertyChanged
Event Type
| Type | Description |
|---|---|
| PropertyChangedEventHandler |