Public Methods
Public Properties
Adds a page break to the Worksheet. Syntax Parameters pageBreak The page break to add to the Worksheet. Exceptions Exception Description System.ArgumentNullException Occurs when pageBreak is null. System.ArgumentException Occurs when pageBreak overlaps with another page break already in the collection.
Clears the collection of page breaks. Syntax
Determines whether the specified page break exists on the Worksheet. Syntax Parameters pageBreak The page break to test. Return Value True if the page break is on the Worksheet; False otherwise. Exceptions Exception Description System.ArgumentNullException Occurs when pageBreak is null.
Gets the number of page breaks in this collection. Syntax
Gets the 0-based index of the specified page break. Syntax Parameters pageBreak The page break for which the index should be obtained. Return Value The 0-based index of the page break or -1 if the page break is no tin the collection. Exceptions Exception Description System.ArgumentNullException Occurs when pageBre...
Gets the page break at the specified index. Syntax Parameters index The index of the page break to get. Property Value A PageBreak-derived instance. Exceptions Exception Description System.ArgumentOutOfRangeException Occurs when index is less than 0 or greater than of equal to Count.
Removes the specified page break from the Worksheet. Syntax Parameters pageBreak The page break which should be removed. Return Value True if the page break was contained on the Worksheet before removal; False otherwise. Exceptions Exception Description System.ArgumentNullException Occurs when pageBreak is null.
Removes the page break at the specified index. Syntax Parameters index The 0-based index of the page break to remove. Exceptions Exception Description System.ArgumentOutOfRangeException Occurs when index is less than zero or greater than or equal to the number of page breaks in the collection.