Docs HotXLS

Borders-property

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

Syntaxe

property Borders: IXLSBorders;

Exemple

Cet exemple définit la bordure inférieure de la cellule B2 de la feuille un en bordure rouge fine

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