Base class for the collections of horizontal and vertical page breaks on a [[worksheet]].

See

  • [[PrintOptions.horizontalPageBreaks]]
  • [[PrintOptions.verticalPageBreaks]]
  • [[HorizontalPageBreakCollection]]
  • [[VerticalPageBreakCollection]]

Type Parameters

Hierarchy

Hierarchy (view full)

Implements

  • IList$1<T>

Constructors

Properties

$type: Type
$t: Type
nextHashCode: number

Accessors

  • get count(): number
  • Gets the number of page breaks in this collection.

    Returns number

Methods

  • Returns EnumeratorWrapper<T>

  • Adds a page break to the [[worksheet]].

    Throws

    [[ArgumentNullException]] Occurs when 'pageBreak' is null.

    Throws

    [[ArgumentException]] Occurs when 'pageBreak' overlaps with another page break already in the collection.

    See

    • [[PrintOptions.insertPageBreak]]
    • [[PrintOptions.insertPageBreak]]
    • [[PrintOptions.insertPageBreak]]

    Parameters

    • pageBreak: T

      The page break to add to the Worksheet.

    Returns void

  • Clears the collection of page breaks.

    See

    [[PrintOptions.clearPageBreaks]]

    Returns void

  • Determines whether the specified page break exists on the [[worksheet]].

    Throws

    [[ArgumentNullException]] Occurs when 'pageBreak' is null.

    Parameters

    • pageBreak: T

      The page break to test.

    Returns boolean

  • Parameters

    • other: any

    Returns boolean

  • Returns number

  • Gets the 0-based index of the specified page break.

    Throws

    [[ArgumentNullException]] Occurs when 'pageBreak' is null.

    Parameters

    • pageBreak: T

      The page break for which the index should be obtained.

    Returns number

  • Gets the page break at the specified index.

    Throws

    [[ArgumentOutOfRangeException]] Occurs when 'index' is less than 0 or greater than of equal to [[count]].

    Parameters

    • index: number

      The index of the page break to get.

    Returns T

  • Returns Base

  • Removes the specified page break from the [[worksheet]].

    Throws

    [[ArgumentNullException]] Occurs when 'pageBreak' is null.

    See

    [[PrintOptions.clearPageBreaks]]

    Parameters

    • pageBreak: T

      The page break which should be removed.

    Returns boolean

  • Removes the page break at the specified index.

    Throws

    [[ArgumentOutOfRangeException]] Occurs when 'index' is less than zero or greater than or equal to the number of page breaks in the collection.

    See

    [[PrintOptions.clearPageBreaks]]

    Parameters

    • index: number

      The 0-based index of the page break to remove.

    Returns void

  • Parameters

    • item1: any
    • item2: any

    Returns number

  • Parameters

    • item1: any
    • item2: any

    Returns number

  • Parameters

    • item1: any
    • item2: any

    Returns boolean

  • Parameters

    • a: any
    • b: any

    Returns boolean

  • Parameters

    • obj: any

    Returns any[]

  • Parameters

    • obj: any

    Returns any[]

  • Parameters

    • obj: any

    Returns number

  • Parameters

    • a: any
    • b: any

    Returns boolean