Class ColumnDescriptorCollection
A keyed collection of ColumnDescriptors. The Key is the MemberName.
Inheritance
ColumnDescriptorCollection
Implements
Namespace: Sartorius.SAF.Presentation.Controls
Assembly: Sartorius.SAF.Presentation.Controls.dll
Syntax
public class ColumnDescriptorCollection : KeyedCollection<string, ColumnDescriptor>, IList<ColumnDescriptor>, ICollection<ColumnDescriptor>, IReadOnlyList<ColumnDescriptor>, IReadOnlyCollection<ColumnDescriptor>, IEnumerable<ColumnDescriptor>, IList, ICollection, IEnumerable
Constructors
View SourceColumnDescriptorCollection()
Initializes a new instance of the ColumnDescriptorCollection class.
Declaration
public ColumnDescriptorCollection()
ColumnDescriptorCollection(IEnumerable<ColumnDescriptor>)
Initializes a new instance of the ColumnDescriptorCollection class from an enumerable.
Declaration
public ColumnDescriptorCollection(IEnumerable<ColumnDescriptor> columnDescriptors)
Parameters
| Type | Name | Description |
|---|---|---|
| IEnumerable<ColumnDescriptor> | columnDescriptors | The enumerable. |
Methods
View SourceGetKeyForItem(ColumnDescriptor)
When implemented in a derived class, extracts the key from the specified element.
Declaration
protected override string GetKeyForItem(ColumnDescriptor columnDescriptor)
Parameters
| Type | Name | Description |
|---|---|---|
| ColumnDescriptor | columnDescriptor | The element from which to extract the key. |
Returns
| Type | Description |
|---|---|
| string | The key for the specified element. |