A simple property class using Variants.
This is used to give each rich text object the ability to store custom properties that can be used by the application.
Default constructor. |
|
Clears the properties. |
|
Copies from props. |
|
Finds the given property. |
|
Finds or creates a property with the given name, returning a pointer to the variant. |
|
Returns a count of the properties. |
|
Returns the array of variants implementing the properties. |
|
Gets the property variant by name. |
|
Gets the value of the named property as a boolean. |
|
Gets the value of the named property as a double. |
|
Gets the value of the named property as a long integer. |
|
Returns all the property names. |
|
Gets the value of the named property as a string. |
|
Returns |
|
Merges the given properties with these properties. |
|
Removes the given property. |
|
Removes the given properties from these properties. |
|
Sets the array of variants. |
|
Sets the property by passing a variant which contains a name and value. |
|
Equality operator. |
See |
|
See |
|
See |
Possible constructors:
RichTextProperties() -> None
RichTextProperties(props : RichTextProperties) -> None
A simple property class using Variants.
__init__ (self)
Default constructor.
None
__init__ (self, props : RichTextProperties)
Copy constructor.
props (wx.richtext.RichTextProperties)
None
Clears the properties.
None
Copies from props.
props (wx.richtext.RichTextProperties)
None
Finds the given property.
name (string)
int
Finds or creates a property with the given name, returning a pointer to the variant.
name (string)
Variant
Returns a count of the properties.
int
Returns the array of variants implementing the properties.
RichTextVariantArray
Gets the property variant by name.
name (string)
Variant
Gets the value of the named property as a boolean.
name (string)
bool
Gets the value of the named property as a double.
name (string)
float
Gets the value of the named property as a long integer.
name (string)
int
Returns all the property names.
List[str]
Gets the value of the named property as a string.
name (string)
str
Returns True
if the given property is found.
name (string)
bool
Merges the given properties with these properties.
properties (wx.richtext.RichTextProperties)
None
Removes the given property.
name (string)
bool
Removes the given properties from these properties.
properties (wx.richtext.RichTextProperties)
None
Sets the array of variants.
props (RichTextVariantArray)
None
SetProperty (self, variant : Variant)
Sets the property by passing a variant which contains a name and value.
variant (Variant)
None
SetProperty (self, name : str, variant : Variant)
Sets a property by name and variant.
name (string)
variant (Variant)
None
SetProperty (self, name : str, value : str)
Sets a property by name and string value.
name (string)
value (string)
None
SetProperty (self, name : str, value : str)
Sets a property by name and Char value.
name (string)
value (wx.Char)
None
SetProperty (self, name : str, value : int)
Sets property by name and long integer value.
name (string)
value (long)
None
SetProperty (self, name : str, value : float)
Sets property by name and float value.
name (string)
value (float)
None
Equality operator.
props (wx.richtext.RichTextProperties)
See GetProperties
and SetProperties
See GetPropertyNames