A style sheet contains named paragraph and character styles that make it easy for a user to apply combinations of attributes to a wx.richtext.RichTextCtrl.
You can use a wx.richtext.RichTextStyleListBox in your user interface to show available styles to the user, and allow application of styles to the control.
Constructor. |
|
Adds a definition to the character style list. |
|
Adds a definition to the list style list. |
|
Adds a definition to the paragraph style list. |
|
Adds a definition to the appropriate style list. |
|
Deletes all styles. |
|
Finds a character definition by name. |
|
Finds a list definition by name. |
|
Finds a paragraph definition by name. |
|
Finds a style definition by name. |
|
Returns the nth character style. |
|
Returns the number of character styles. |
|
Returns the style sheet’s description. |
|
Returns the nth list style. |
|
Returns the number of list styles. |
|
Returns the style sheet’s name. |
|
Returns the nth paragraph style. |
|
Returns the number of paragraph styles. |
|
Returns the sheet’s properties. |
|
Removes a character style. |
|
Removes a list style. |
|
Removes a paragraph style. |
|
Removes a style. |
|
Sets the style sheet’s description. |
|
Sets the style sheet’s name. |
|
Sets the sheet’s properties. |
See |
|
See |
Possible constructors:
RichTextStyleSheet()
A style sheet contains named paragraph and character styles that make it easy for a user to apply combinations of attributes to a RichTextCtrl.
Constructor.
Adds a definition to the character style list.
styleDef (wx.richtext.RichTextCharacterStyleDefinition) –
bool
Adds a definition to the list style list.
styleDef (wx.richtext.RichTextListStyleDefinition) –
bool
Adds a definition to the paragraph style list.
styleDef (wx.richtext.RichTextParagraphStyleDefinition) –
bool
Adds a definition to the appropriate style list.
styleDef (wx.richtext.RichTextStyleDefinition) –
bool
Deletes all styles.
Finds a character definition by name.
name (string) –
recurse (bool) –
Finds a list definition by name.
name (string) –
recurse (bool) –
Finds a paragraph definition by name.
name (string) –
recurse (bool) –
Finds a style definition by name.
name (string) –
Returns the nth character style.
n (int) –
Returns the number of character styles.
int
Returns the style sheet’s description.
string
Returns the nth list style.
n (int) –
Returns the number of list styles.
int
Returns the style sheet’s name.
string
Returns the nth paragraph style.
n (int) –
Returns the number of paragraph styles.
int
Returns the sheet’s properties.
Removes a character style.
styleDef (wx.richtext.RichTextStyleDefinition) –
deleteStyle (bool) –
bool
Removes a list style.
styleDef (wx.richtext.RichTextStyleDefinition) –
deleteStyle (bool) –
bool
Removes a paragraph style.
styleDef (wx.richtext.RichTextStyleDefinition) –
deleteStyle (bool) –
bool
Removes a style.
styleDef (wx.richtext.RichTextStyleDefinition) –
deleteStyle (bool) –
bool
Sets the style sheet’s description.
descr (string) –
Sets the style sheet’s name.
name (string) –
Sets the sheet’s properties.
props (wx.richtext.RichTextProperties) –
See GetDescription
and SetDescription
See GetProperties
and SetProperties