ExpandableCollectionConverter.DictionaryItemPropertyDescriptor Class
protected class ExpandableCollectionConverter.DictionaryItemPropertyDescriptor : TypeConverter.SimplePropertyDescriptor, ICollectionItemPropertyDescriptor
- Inheritance:
-
object
MemberDescriptor
PropertyDescriptor
TypeConverter.SimplePropertyDescriptor
object
- Implements:
-
ICollectionItemPropertyDescriptor
Constructors
DictionaryItemPropertyDescriptor(IDictionary, object, Type, Attribute[], bool, bool)
public DictionaryItemPropertyDescriptor(IDictionary dictionary, object key, Type itemType, Attribute[] attributes, bool isCollectionReadOnly, bool isReadOnly)
Properties
CanRemove
Gets a value indicating whether the collection item can be removed.
public virtual bool CanRemove { get; }
Property Value
- bool:
true
if the collection item can be removed; otherwise, false
.
Dictionary
public IDictionary Dictionary { get; }
Property Value
- IDictionary
IsReadOnly
public override bool IsReadOnly { get; }
Property Value
- bool
Key
public object Key { get; }
Property Value
- object
Methods
GetValue(object)
public override object GetValue(object component)
Parameter |
Type |
Description |
component |
object |
|
Returns
- object
Remove()
Removes this item from the associated collection.
public virtual bool Remove()
Returns
- bool:
true
if the item was removed; otherwise, false
.
SetValue(object, object)
public override void SetValue(object component, object value)
Inherited Members