[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.IHPageBreak

IHPageBreak Interface

Represents a horizontal page break.

Use HPageBreaks to add or access horizontal page breaks within the print area. The break location is defined by an IRange; horizontal page breaks are aligned with the top edge of that range.

Namespace: GrapeCity.Documents.Excel
Assembly: DS.Documents.Excel.dll
Syntax
public interface IHPageBreak
Public Interface IHPageBreak
Examples
IHPageBreak hPageBreak = worksheet.HPageBreaks.Add(worksheet.Range["A4"]);
IRange location = hPageBreak.Location;
PageBreakExtent extent = hPageBreak.Extent;
hPageBreak.Delete();

Properties

Name Description
Extent

Returns the extent of the specified page break: the entire worksheet or only the print area.

The returned value indicates whether the horizontal page break spans the full sheet width (PageBreakFull) or applies only within the print area (PageBreakPartial).

Location

Returns the range that defines the page-break location.

Horizontal page breaks are aligned with the top edge of the returned range.

Methods

Name Description
Delete()

Deletes this horizontal page break.

Removes this horizontal page break from the worksheet.