ExpandableCollectionConverter.ListItemPropertyDescriptor Class
protected class ExpandableCollectionConverter.ListItemPropertyDescriptor : TypeConverter.SimplePropertyDescriptor, ICollectionItemPropertyDescriptor
- Inheritance:
-
object
MemberDescriptor
PropertyDescriptor
TypeConverter.SimplePropertyDescriptor
object
- Implements:
-
ICollectionItemPropertyDescriptor
Constructors
ListItemPropertyDescriptor(IList, int, Type, Attribute[], bool, bool)
public ListItemPropertyDescriptor(IList list, int index, 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
.
Index
public int Index { get; }
Property Value
- int
IsReadOnly
public override bool IsReadOnly { get; }
Property Value
- bool
List
public IList List { get; }
Property Value
- IList
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