Show / Hide Table of Contents

Class AboutDialogButtonDescriptionCollection

A collection of Sartorius.SAF.Presentation.Controls.AboutDialog.IAboutDialogButtonDescriptions

Inheritance
object
AboutDialogButtonDescriptionCollection
Implements
IList<IAboutDialogButtonDescription>
ICollection<IAboutDialogButtonDescription>
IEnumerable<IAboutDialogButtonDescription>
INotifyPropertyChanged
INotifyCollectionChanged
IList
ICollection
IEnumerable
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
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 Source

AboutDialogButtonDescriptionCollection()

Initializes a new instance of the AboutDialogButtonDescriptionCollection class.

Declaration
public AboutDialogButtonDescriptionCollection()
View Source

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 Source

Count

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.

View Source

IsReadOnly

Gets a value indicating whether the IList is read-only.

Declaration
public bool IsReadOnly { get; }
Property Value
Type Description
bool

true if the IList is read-only; otherwise, false.

View Source

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

index is not a valid index in the IList<T>.

NotSupportedException

The property is set and the IList<T> is read-only.

Methods

View Source

Add(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.

View Source

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.

View Source

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.

View Source

Clear()

Removes all items from the IList.

Declaration
public void Clear()
Exceptions
Type Condition
NotSupportedException

The IList is read-only.

View Source

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 item is found in the ICollection<T>; otherwise, false.

View Source

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 array at which copying begins.

Exceptions
Type Condition
ArgumentNullException

array is null.

ArgumentOutOfRangeException

arrayIndex is less than 0.

ArgumentException

The number of elements in the source ICollection<T> is greater than the available space from arrayIndex to the end of the destination array.

View Source

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.

View Source

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 item if found in the list; otherwise, -1.

View Source

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 item should be inserted.

IAboutDialogButtonDescription item

The object to insert into the IList<T>.

Exceptions
Type Condition
ArgumentOutOfRangeException

index is not a valid index in the IList<T>.

NotSupportedException

The IList<T> is read-only.

View Source

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.

View Source

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 item was successfully removed from the ICollection<T>; otherwise, false. This method also returns false if item is not found in the original ICollection<T>.

Exceptions
Type Condition
NotSupportedException

The ICollection<T> is read-only.

View Source

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

index is not a valid index in the IList.

NotSupportedException

The IList is read-only.

-or-

The IList has a fixed size.

Events

View Source

CollectionChanged

Occurs when the collection changes.

Declaration
public event NotifyCollectionChangedEventHandler CollectionChanged
Event Type
Type Description
NotifyCollectionChangedEventHandler
View Source

PropertyChanged

Occurs when a property value changes.

Declaration
public event PropertyChangedEventHandler PropertyChanged
Event Type
Type Description
PropertyChangedEventHandler

Implements

IList<T>
ICollection<T>
IEnumerable<T>
INotifyPropertyChanged
INotifyCollectionChanged
IList
ICollection
IEnumerable

Extension Methods

CollectionExtensions.AddRange<T, TCollection>(TCollection, IEnumerable<T>)
SerializableObjectCloneExtension.Clone<T>(T)
ListExtensions.ToDataTable<T>(IList<T>)
NotifyPropertyChangedExtensions.GetPropertyName<T>(INotifyPropertyChanged, Expression<Func<T>>)
NotifyPropertyChangedExtensions.RaisePropertyChanged(INotifyPropertyChanged, string)
NotifyPropertyChangedExtensions.RaisePropertyChanged<T>(INotifyPropertyChanged, Expression<Func<T>>)
PropertyHelper.RaisePropertyChanged<T>(INotifyPropertyChanged, Expression<Func<T>>, PropertyChangedEventHandler)
  • View Source
Back to top Generated by DocFX