ExpandableCollectionConverter.CollectionItemPropertyDescriptor Class
Represents a System.ComponentModel.PropertyDescriptor for an item in a read-only collection.
protected class CollectionItemPropertyDescriptor : TypeConverter.SimplePropertyDescriptor
- Inheritance:
- System.Object Object
Constructors
CollectionItemPropertyDescriptor(ICollection, Int32, Object, Type, Attribute[])
Initializes a new instance of the ExpandableCollectionConverter.CollectionItemPropertyDescriptor class.
public CollectionItemPropertyDescriptor(ICollection collection, int index, object item, Type itemType, Attribute[] attributes)
Parameter | Type | Description |
---|---|---|
collection | System.Collections.ICollection | The collection associated with the item. |
index | System.Int32 | The index of the item in the collection. |
item | System.Object | The item in the collection. |
itemType | System.Type | Type of the item. |
attributes | Attribute[] | An |
Properties
IsReadOnly
Gets a value indicating whether this property is read-only.
public override bool IsReadOnly { get; }
Property Value
- System.Boolean
Methods
GetValue(Object)
When overridden in a derived class, gets the current value of the property on a component.
public override object GetValue(object component)
Parameter | Type | Description |
---|---|---|
component | System.Object | The component with the property for which to retrieve the value. |
Returns
- System.Object:
The value of a property for a given component.
SetValue(Object, Object)
When overridden in a derived class, sets the value of the component to a different value.
public override void SetValue(object component, object value)
Parameter | Type | Description |
---|---|---|
component | System.Object | The component with the property value that is to be set. |
value | System.Object | The new value. |