Version

Search Results

Add Method (PageBreakCollection<T>)

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.

Clear Method (PageBreakCollection<T>)

Clears the collection of page breaks. Syntax

Contains Method (PageBreakCollection<T>)

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.

Count Property (PageBreakCollection<T>)

Gets the number of page breaks in this collection. Syntax

IndexOf Method (PageBreakCollection<T>)

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...

Item Property (PageBreakCollection<T>)

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.

Remove Method (PageBreakCollection<T>)

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.

RemoveAt Method (PageBreakCollection<T>)

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.