.. wxPython Phoenix documentation

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

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

.. include:: headings.inc

.. currentmodule:: wx.lib.agw.xlsgrid

.. highlight:: python



.. _wx.lib.agw.xlsgrid.XLSRenderer:

==========================================================================================================================================
|phoenix_title|  **wx.lib.agw.xlsgrid.XLSRenderer**
==========================================================================================================================================

This class is responsible for actually drawing the cell in the grid.



|

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

.. raw:: html

   <div class="collabsible-wrapper">
      <input id="collapsible-inheritance" class="collapsible-checkbox" type="checkbox">
      <label for="collapsible-inheritance" tabindex="0" title="Show inheritance diagram" class="collapsible-label">Inheritance diagram for class <strong>XLSRenderer</strong>:</label>
      <div class="collapsible-content">
         <p class="graphviz">
            <center><img src="_static/images/inheritance/wx.lib.agw.xlsgrid.XLSRenderer_inheritance.svg" alt="Inheritance diagram of XLSRenderer" usemap="#dummy" class="inheritance invert-in-dark-mode"/></center>
            <map id="dummy" name="dummy"> <area shape="rect" id="node1" href="wx.lib.agw.xlsgrid.XLSRenderer.html" title="This class is responsible for actually drawing the cell in the grid." alt="" coords="111,159,367,188"/> <area shape="rect" id="node3" href="wx.SharedClientDataContainer.html" title="This class is a replacement for wx.ClientDataContainer, and unlike wx.ClientDataContainer  the wx.SharedClientDataContainer  client data is copiable, so it can be copied when objects containing it are cloned." alt="" coords="5,5,256,34"/> <area shape="rect" id="node4" href="wx.RefCounter.html" title="This class is used to manage reference-counting providing a simple interface and a counter." alt="" coords="281,5,415,34"/> </map> 
         </p>
      </div>
   </div>
   <script type="text/javascript" src="_static/inheritancetoggle.js"></script>



|


|super_classes| Known Superclasses
==================================

:class:`wx.grid.GridCellRenderer`

|


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

================================================================================ ================================================================================
:meth:`~wx.lib.agw.xlsgrid.XLSRenderer.__init__`                                 Default class constructor.
:meth:`~wx.lib.agw.xlsgrid.XLSRenderer.Draw`                                     Draw the given cell on the provided `dc` inside the given rectangle using
================================================================================ ================================================================================


|


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


.. class:: XLSRenderer(gridlib.GridCellRenderer)

   This class is responsible for actually drawing the cell in the grid.

   .. method:: __init__(self, cell)

      Default class constructor.
      
      :param `cell`: an instance of :class:`XLSCell`.


   .. method:: Draw(self, grid, attr, dc, rect, row, col, isSelected)

      Draw the given cell on the provided `dc` inside the given rectangle using
      default or selected state corresponding to the `isSelected` value.
      
      :param `grid`: an instance of :class:`grid.Grid`;
      :param `attr`: an instance of :class:`grid.GridCellAttr`;
      :param `dc`: an instance of :class:`wx.DC`;
      :param `rect`: an instance of :class:`wx.Rect`, representing the cell rectangle;
      :param `row`: the row in which this cell lives;
      :param `col`: the column in which this cell lives;
      :param `isSelected`: ``True`` if the cell is selected, ``False`` otherwise.


