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.
Default class constructor. |
|
Actually draws the cell border. |
|
Actually draws the cell border (one of left, right, bottom, top). |
|
Actually draws the cell diagonal border. |
XLSBorder
(object)¶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__
(self, location, line_style, border_colour, default_colour, diagonals)¶Default class constructor.
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
(self, dc, rect)¶Actually draws the cell border.
DrawBorder
(self, dc, rect)¶Actually draws the cell border (one of left, right, bottom, top).