Generic application property.
FBProperty objects cannot be instantiated by the user. Reference to a property can be obtained either via an instance of a FBComponent object, or by calling the method 'Find()' of a FBPropertyManager. The class FBComponent has a FBPropertyManager data member named 'PropertyList'.
When accessing a FBProperty object via its containing object, you can get or set (assuming it is not read-only) its value directly:
lObject.Visibility = True
When accessing a property reference directly, its value is obtained via it's 'Data' member.
lProp = lObject.PropertyList.Find( 'Visibility' )
if lProp: lProp.Data = True
The methods 'PropertyCreate()' and 'PropertyRemove' of the class FBComponent can be used to modify an object's set of properties.
Public Attributes |
|
str | Name |
Read Property: The property's name.
|
|
object | Data |
Read Write Property: The property
data value. |
Read Property: The property's name.
Read Write Property: The property data value.
Type of this depends on the subclass of FBProperty (ex: in a FBPropertyInt, Data is of type int).
Reimplemented in FBPropertyAction, FBPropertyBool, FBPropertyColor, FBPropertyColorAndAlpha, FBPropertyComponent, FBPropertyDouble, FBPropertyFloat, FBPropertyInt, FBPropertyString, FBPropertyTime, FBPropertyVector2d, FBPropertyVector3d, FBPropertyVector4d, FBPropertyEnum, FBPropertyAnimatable, FBPropertyAnimatableAction, FBPropertyAnimatableBool, FBPropertyAnimatableColor, FBPropertyAnimatableColorAndAlpha, FBPropertyAnimatableDouble, FBPropertyAnimatableTime, FBPropertyAnimatableEnum, FBPropertyAnimatableInt, FBPropertyAnimatableVector2d, FBPropertyAnimatableVector3d, and FBPropertyAnimatableVector4d.