.. wxPython Phoenix documentation This file was generated by Phoenix's sphinx generator and associated tools, do not edit by hand. Copyright: (c) 2011-2020 by Total Control Software License: wxWindows License .. include:: headings.inc .. _wx.richtext.RichTextStyleDefinition: ========================================================================================================================================== |phoenix_title| **wx.richtext.RichTextStyleDefinition** ========================================================================================================================================== This is a base class for paragraph and character styles. | |class_hierarchy| Class Hierarchy ================================= .. raw:: html
Inheritance diagram for class RichTextStyleDefinition:
| |sub_classes| Known Subclasses ============================== :ref:`wx.richtext.RichTextCharacterStyleDefinition`, :ref:`wx.richtext.RichTextParagraphStyleDefinition` | |method_summary| Methods Summary ================================ ================================================================================ ================================================================================ :meth:`~wx.richtext.RichTextStyleDefinition.__init__` Constructor. :meth:`~wx.richtext.RichTextStyleDefinition.GetBaseStyle` Returns the style on which this style is based. :meth:`~wx.richtext.RichTextStyleDefinition.GetDescription` Returns the style's description. :meth:`~wx.richtext.RichTextStyleDefinition.GetName` Returns the style name. :meth:`~wx.richtext.RichTextStyleDefinition.GetProperties` Returns the definition's properties. :meth:`~wx.richtext.RichTextStyleDefinition.GetStyle` Returns the attributes associated with this style. :meth:`~wx.richtext.RichTextStyleDefinition.GetStyleMergedWithBase` Returns the style attributes combined with the attributes of the specified base style, if any. :meth:`~wx.richtext.RichTextStyleDefinition.SetBaseStyle` Sets the name of the style that this style is based on. :meth:`~wx.richtext.RichTextStyleDefinition.SetDescription` Sets the style description. :meth:`~wx.richtext.RichTextStyleDefinition.SetName` Sets the name of the style. :meth:`~wx.richtext.RichTextStyleDefinition.SetProperties` Sets the definition's properties. :meth:`~wx.richtext.RichTextStyleDefinition.SetStyle` Sets the attributes for this style. ================================================================================ ================================================================================ | |property_summary| Properties Summary ===================================== ================================================================================ ================================================================================ :attr:`~wx.richtext.RichTextStyleDefinition.BaseStyle` See :meth:`~wx.richtext.RichTextStyleDefinition.GetBaseStyle` and :meth:`~wx.richtext.RichTextStyleDefinition.SetBaseStyle` :attr:`~wx.richtext.RichTextStyleDefinition.Description` See :meth:`~wx.richtext.RichTextStyleDefinition.GetDescription` and :meth:`~wx.richtext.RichTextStyleDefinition.SetDescription` :attr:`~wx.richtext.RichTextStyleDefinition.Name` See :meth:`~wx.richtext.RichTextStyleDefinition.GetName` and :meth:`~wx.richtext.RichTextStyleDefinition.SetName` :attr:`~wx.richtext.RichTextStyleDefinition.Properties` See :meth:`~wx.richtext.RichTextStyleDefinition.GetProperties` and :meth:`~wx.richtext.RichTextStyleDefinition.SetProperties` :attr:`~wx.richtext.RichTextStyleDefinition.Style` See :meth:`~wx.richtext.RichTextStyleDefinition.GetStyle` and :meth:`~wx.richtext.RichTextStyleDefinition.SetStyle` ================================================================================ ================================================================================ | |api| Class API =============== .. class:: wx.richtext.RichTextStyleDefinition(Object) **Possible constructors**:: RichTextStyleDefinition(name="") This is a base class for paragraph and character styles. .. method:: __init__(self, name="") Constructor. :param `name`: :type `name`: string .. method:: GetBaseStyle(self) Returns the style on which this style is based. :rtype: `string` .. method:: GetDescription(self) Returns the style's description. :rtype: `string` .. method:: GetName(self) Returns the style name. :rtype: `string` .. method:: GetProperties(self) Returns the definition's properties. :rtype: :ref:`wx.richtext.RichTextProperties` .. method:: GetStyle(self) Returns the attributes associated with this style. :rtype: :ref:`wx.richtext.RichTextAttr` .. method:: GetStyleMergedWithBase(self, sheet) Returns the style attributes combined with the attributes of the specified base style, if any. This function works recursively. :param `sheet`: :type `sheet`: wx.richtext.RichTextStyleSheet :rtype: :ref:`wx.richtext.RichTextAttr` .. method:: SetBaseStyle(self, name) Sets the name of the style that this style is based on. :param `name`: :type `name`: string .. method:: SetDescription(self, descr) Sets the style description. :param `descr`: :type `descr`: string .. method:: SetName(self, name) Sets the name of the style. :param `name`: :type `name`: string .. method:: SetProperties(self, props) Sets the definition's properties. :param `props`: :type `props`: wx.richtext.RichTextProperties .. method:: SetStyle(self, style) Sets the attributes for this style. :param `style`: :type `style`: wx.richtext.RichTextAttr .. attribute:: BaseStyle See :meth:`~wx.richtext.RichTextStyleDefinition.GetBaseStyle` and :meth:`~wx.richtext.RichTextStyleDefinition.SetBaseStyle` .. attribute:: Description See :meth:`~wx.richtext.RichTextStyleDefinition.GetDescription` and :meth:`~wx.richtext.RichTextStyleDefinition.SetDescription` .. attribute:: Name See :meth:`~wx.richtext.RichTextStyleDefinition.GetName` and :meth:`~wx.richtext.RichTextStyleDefinition.SetName` .. attribute:: Properties See :meth:`~wx.richtext.RichTextStyleDefinition.GetProperties` and :meth:`~wx.richtext.RichTextStyleDefinition.SetProperties` .. attribute:: Style See :meth:`~wx.richtext.RichTextStyleDefinition.GetStyle` and :meth:`~wx.richtext.RichTextStyleDefinition.SetStyle`