Click or drag to resize
XpsSaveOptionsSelectionType Property
Gets or sets a value indicating whether to save the whole ExcelFile or just ActiveWorksheet.

Namespace:  GemBox.Spreadsheet
Assembly:  GemBox.Spreadsheet (in GemBox.Spreadsheet.dll) Version: 41.3.30.1018
Syntax
public SelectionType SelectionType { get; set; }

Property Value

Type: SelectionType
Examples

Following code demonstrates how to save ExcelFile to XPS file format.

// Save active sheet
ef.Save("Report.xps");

// Save all sheets
ef.Save("Report.xps", new XpsSaveOptions()
{
    SelectionType = SelectionType.EntireFile
});
See Also