NativeExcel suite v2.x

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 © NikaSoft 2004-2012