.. wxPython Phoenix documentation

   This file was generated by Phoenix's sphinx generator and associated
   tools, do not edit by hand.

   Copyright: (c) 2011-2017 by Total Control Software
   License:   wxWindows License

.. include:: headings.inc



.. _wx.richtext.RichTextCommand:

==========================================================================================================================================
|phoenix_title|  **wx.richtext.RichTextCommand**
==========================================================================================================================================

Implements a command on the undo/redo stack.          

A :ref:`wx.richtext.RichTextCommand`  object contains one or more :ref:`wx.richtext.RichTextAction`  objects, allowing aggregation of a number of operations into one command. 







         



.. seealso:: :ref:`wx.richtext.RichTextAction`    







|

|class_hierarchy| Class Hierarchy
=================================

.. raw:: html

   <div id="toggleBlock" onclick="return toggleVisibility(this)" class="closed" style="cursor:pointer;">
   <img id="toggleBlock-trigger" src="_static/images/closed.png"/>
   Inheritance diagram for class <strong>RichTextCommand</strong>:
   </div>
   <div id="toggleBlock-summary" style="display:block;"></div>
   <div id="toggleBlock-content" style="display:none;">
   <p class="graphviz">
   <center><img src="_static/images/inheritance/wx.richtext.RichTextCommand_inheritance.png" alt="Inheritance diagram of RichTextCommand" usemap="#dummy" class="inheritance"/></center>
   </div>
   <script type="text/javascript">toggleVisibilityOnLoad(document.getElementById('toggleBlock'))</script>
   <map id="dummy" name="dummy"> <area shape="rect" id="node1" href="wx.richtext.RichTextCommand.html" title="wx.richtext.RichTextCommand" alt="" coords="5,160,216,189"/> <area shape="rect" id="node2" href="wx.Command.html" title="wx.Command" alt="" coords="56,83,165,112"/> <area shape="rect" id="node3" href="wx.Object.html" title="wx.Object" alt="" coords="69,5,151,35"/> </map> 
   </p>

|


|method_summary| Methods Summary
================================

================================================================================ ================================================================================
:meth:`~wx.richtext.RichTextCommand.__init__`                                    Constructor for one action.
:meth:`~wx.richtext.RichTextCommand.AddAction`                                   Adds an action to the action list.
:meth:`~wx.richtext.RichTextCommand.ClearActions`                                Clears the action list.
:meth:`~wx.richtext.RichTextCommand.Do`                                          Performs the command.
:meth:`~wx.richtext.RichTextCommand.GetActions`                                  Returns the action list.
:meth:`~wx.richtext.RichTextCommand.Undo`                                        Undoes the command.
================================================================================ ================================================================================


|


|property_summary| Properties Summary
=====================================

================================================================================ ================================================================================
:attr:`~wx.richtext.RichTextCommand.Actions`                                     See :meth:`~wx.richtext.RichTextCommand.GetActions`
================================================================================ ================================================================================


|


|api| Class API
===============


.. class:: wx.richtext.RichTextCommand(Command)

   **Possible constructors**::

       RichTextCommand(name, id, buffer, container, ctrl,
                       ignoreFirstTime=False)
       
       RichTextCommand(name)
       
   
   Implements a command on the undo/redo stack.



   .. method:: __init__(self, *args, **kw)



      |overload| Overloaded Implementations:

      **~~~**

      
      **__init__** `(self, name, id, buffer, container, ctrl, ignoreFirstTime=False)`
      
      Constructor for one action.                  
      
      
      :param `name`: 
      :type `name`: string
      :param `id`: 
      :type `id`: wx.richtext.RichTextCommandId
      :param `buffer`: 
      :type `buffer`: wx.richtext.RichTextBuffer
      :param `container`: 
      :type `container`: wx.richtext.RichTextParagraphLayoutBox
      :param `ctrl`: 
      :type `ctrl`: wx.richtext.RichTextCtrl
      :param `ignoreFirstTime`: 
      :type `ignoreFirstTime`: bool
      
      
      
      
      
      
      **~~~**

      
      **__init__** `(self, name)`
      
      Constructor for multiple actions.                  
      
      
      :param `name`: 
      :type `name`: string
      
      
      
      
      
      
      **~~~**






   .. method:: AddAction(self, action)

      Adds an action to the action list.                  


      :param `action`: 
      :type `action`: wx.richtext.RichTextAction







   .. method:: ClearActions(self)

      Clears the action list.                   





   .. method:: Do(self)

      Performs the command.                  

      :rtype: `bool`








   .. method:: GetActions(self)

      Returns the action list.                  

      :rtype: :ref:`RichTextActionList`








   .. method:: Undo(self)

      Undoes the command.                  

      :rtype: `bool`








   .. attribute:: Actions

      See :meth:`~wx.richtext.RichTextCommand.GetActions`

