ExpandableCollectionConverter.CollectionItemPropertyDescriptor Class
Represents a PropertyDescriptor for an item in a read-only collection.
protected class CollectionItemPropertyDescriptor : TypeConverter.SimplePropertyDescriptor
- Inheritance:
- 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 | ICollection | The collection associated with the item. |
index | Int32 | The index of the item in the collection. |
item | Object | The item in the collection. |
itemType | Type | Type of the item. |
attributes | Attribute[] | An |
Properties
IsReadOnly
Gets a value indicating whether this property is read-only.
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 | Object | The component with the property for which to retrieve the value. |
Returns
- 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.