AGW Logo

agw_title XLSBorder

This is a class which holds information about a single cell border, in terms of its location (top, left, bottom, right, diagonal), its colour, width and shape.

hierarchy Inheritance Diagram

Inheritance diagram for: XLSBorder

Inheritance diagram of XLSBorder


method_summary Methods Summary

__init__Default class constructor.
DrawActually draws the cell border.
DrawBorderActually draws the cell border (one of left, right, bottom, top).
DrawDiagonalsActually draws the cell diagonal border.

API Class API

class XLSBorder(object)[source]

This is a class which holds information about a single cell border, in terms of its location (top, left, bottom, right, diagonal), its colour, width and shape.



__init__(location, line_style, border_colour, default_colour, diagonals)[source]

Default class constructor.

Parameters:
  • location – the actual border location (top, left, bottom, right, diagonal);
  • line_style – the line style used by Excel to draw this border;
  • border_colour – the colour used by Excel to draw this border;
  • default_colour – the “magic” colour used by Excel to draw non-custom border lines;
  • diagonals – a tuple containing whether or not to draw the up and down diagonal borders.


Draw(dc, rect)[source]

Actually draws the cell border.

Parameters:
  • dc – an instance of wx.DC;
  • rect – an instance of wx.Rect, representing the cell rectangle.


DrawBorder(dc, rect)[source]

Actually draws the cell border (one of left, right, bottom, top).

Parameters:
  • dc – an instance of wx.DC;

  • rect – an instance of wx.Rect, representing the cell rectangle.



DrawDiagonals(dc, rect)[source]

Actually draws the cell diagonal border.

Parameters:
  • dc – an instance of wx.DC;

  • rect – an instance of wx.Rect, representing the cell rectangle.

Tree

Table Of Contents

Previous topic

XLSBackground

Next topic

XLSBorderFactory