HotXLS-dokumentation

Borders egenskab

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

Syntaks

property Borders: IXLSBorders;

Eksempel

Eksemplet sætter farven på cellen B2's nederste kant på det første regneark til en tynd rød kant

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