Version

Search Results

Add Method (PrintAreasCollection)

Adds a print area to the collection. Syntax Parameters printArea The print area to add to the collection. Exceptions Exception Description System.ArgumentNullException Occurs when printArea is null. System.ArgumentException Occurs when printArea overlaps with another print area in the collection.

Clear Method (PrintAreasCollection)

Clears all print areas from the collection. Syntax Remarks If any page breaks are contained in a print area, they will be removed from their collection.

Contains Method (PrintAreasCollection)

Determines whether the specified print area is in the collection. Syntax Parameters printArea The print area to search for in the collection. Return Value True if the print area is in the collection; False otherwise.

Count Property (PrintAreasCollection)

Gets the number of print areas in the collection. Syntax

Item Property (PrintAreasCollection)

Gets the print area at the specified index. Syntax Parameters index The index of the print area to get. Property Value A WorksheetRegion instance representing a print area in the Worksheet. Exceptions Exception Description System.ArgumentOutOfRangeException Occurs when index is less than 0 or greater than or equal...

Remove Method (PrintAreasCollection)

Removes the specified print area from the collection. Syntax Parameters printArea The print area to remove from the collection. Return Value True if the print area was found and removed; False otherwise. Exceptions Exception Description System.ArgumentNullException Occurs when printArea is null. Remarks If any pag...

RemoveAt Method (PrintAreasCollection)

Removes the print area at the specified index from the collection. Syntax Parameters index The index of the print area to remove from the collection. Exceptions Exception Description System.ArgumentOutOfRangeException Occurs when index is less than 0 or greater than or equal to the size of the collection. Remarks ...

PrintErrors Enumeration

Represents the various ways to print cell errors in a worksheet. Syntax Members Member Description DontPrint Errors are not prints, as though the cells containing them have no value. PrintAsDashes Errors are printed as two dashes --. PrintAsDisplayed Errors are printed just as they are displayed on the worksheet. ...