A collection of horizontal page breaks on a [[Worksheet]].

See

  • [[PrintOptions.horizontalPageBreaks]]
  • [[HorizontalPageBreak]]

Hierarchy

Hierarchy (view full)

Constructors

Properties

$type: Type
$t: Type
nextHashCode: number

Accessors

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

    Returns number

Methods

  • 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

    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

    Returns boolean

  • Parameters

    • other: any

    Returns boolean

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

    Throws

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

    Parameters

    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 HorizontalPageBreak

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

    Throws

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

    See

    [[PrintOptions.clearPageBreaks]]

    Parameters

    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

    • a: any
    • b: any

    Returns boolean