[]
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.
public interface IHPageBreak
Public Interface IHPageBreak
IHPageBreak hPageBreak = worksheet.HPageBreaks.Add(worksheet.Range["A4"]);
IRange location = hPageBreak.Location;
PageBreakExtent extent = hPageBreak.Extent;
hPageBreak.Delete();
| 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. |
| Name | Description |
|---|---|
| Delete() | Deletes this horizontal page break. Removes this horizontal page break from the worksheet. |