HotXLS-dokumentation

Borders egenskap

Returnerar a IXLSBorders collection that represents the borders of a range of cells

Syntax

property Borders: IXLSBorders;

Exempel

Exemplet sätter färgen på cell B2:s nedre kantlinje på blad ett till en tunn röd kantlinje

With Workbook.Worksheets[1].Range['B2', 'B2'].Borders[xlEdgeBottom] do
begin
  LineStyle := xlContinuous;
  Weight := xlThin;
  ColorIndex := 3;
end;