HotXLS Delphi Excel Read Write Library / Component Developers Guide loslab Inc.

Delete method

Deletes the specified horizontal page break.

Syntax

procedure Delete;

Example

This example deletes all horizontal page breaks from Worksheet one.

var
  i, cnt: Integer;
begin
  cnt := Workbook.Sheets[1].HPageBreaks.Count;
  if cnt > 0 then begin
     for i := cnt downto 1 do
       Workbook.Sheets[1].HPageBreaks.Item[i].Delete;
  end;
end;
Copyright©2007-2019 loslab.com