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.
Inheritance Diagram
Inheritance diagram for: XLSBorder
Methods Summary
__init__ | Default class constructor. |
Draw | Actually draws the cell border. |
DrawBorder | Actually draws the cell border (one of left, right, bottom, top). |
DrawDiagonals | Actually draws the cell diagonal border. |
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