Interface IPropertyContainer
A generic Map-like interface that defines methods for storing and retrieving objects by an enum key of the Property type.
public interface IPropertyContainer
Methods
DeleteOwnProperty(int)
Deletes the own property of this entity.
void DeleteOwnProperty(int property)
Parameters
property
intthe property to be deleted
GetDefaultProperty<T1>(int)
Gets the default property from this entity.
T1 GetDefaultProperty<T1>(int property)
Parameters
property
intthe property to be retrieved
Returns
- T1
the default property value. If the default property is not defined, null will be returned
Type Parameters
T1
the return type associated with the property
GetOwnProperty<T1>(int)
Gets own property from this entity.
T1 GetOwnProperty<T1>(int property)
Parameters
property
intthe property to be retrieved
Returns
- T1
the value of the given own property. null will be returned if the property value was not found
Type Parameters
T1
the return type associated with the property
Remarks
Gets own property from this entity. The property must have been set earlier to this entity. If the property is not found, null will be returned.
GetProperty<T1>(int)
Gets the property from this entity.
T1 GetProperty<T1>(int property)
Parameters
property
intthe property to be retrieved
Returns
- T1
the value of the given property. null will be returned if the property value was not found
Type Parameters
T1
the return type associated with the property
Remarks
Gets the property from this entity. Compared to GetOwnProperty<T1>(int) , this method can check parent's properties, styles, etc, depending on the origin of the instance
HasOwnProperty(int)
Checks if this entity has the specified property, i.e. if it was set to this very element earlier
bool HasOwnProperty(int property)
Parameters
property
intthe property to be checked
Returns
HasProperty(int)
Checks if this entity has the specified property.
bool HasProperty(int property)
Parameters
property
intthe property to be checked
Returns
Remarks
Checks if this entity has the specified property. Compared to HasOwnProperty(int) , this method can check parent's properties, styles, etc, depending on the origin of the instance
SetProperty(int, object)
Sets a property for this entity.
void SetProperty(int property, object value)