'DeclarationPublic Class WorkbookView
'UsageDim instance As WorkbookView
public class WorkbookView
'DeclarationPublic Class WorkbookView
'UsageDim instance As WorkbookView
public class WorkbookView
Each WorkbookView opens a new window when the document is opened; this allows the user to focus on an important element of the document by displaying it in a different window.
using( var workbook = Workbook.Create( "test.xlsx" ) ) { // Get the first worksheet. A workbook contains at least 1 worksheet. var worksheet_A = workbook.Worksheets[ 0 ]; // Fill cells in 1st worksheet. worksheet_A.Cells[ "D5" ].Value = "This is the first Worksheet."; // Add a worksheet with default "SheetX" name. var worksheet_B = workbook.Worksheets.Add(); // Fill cells in 2nd worksheet. worksheet_B.Cells[ "D5" ].Value = "This is the second Worksheet."; // Add a worksheet with name "Third Sheet". var worksheet_C = workbook.Worksheets.Add( "Third Sheet" ); // Fill cells in 3rd worksheet. worksheet_C.Cells[ "D5" ].Value = "This is the third Worksheet."; // Assign the active worksheet to be the 2nd one. workbook.WorkbookViews[ 0 ].ActiveTab = 1; // Save workbook to disk. workbook.Save(); }
System.Object
Xceed.Workbooks.NET.WorkbookView
| Name | Description | |
|---|---|---|
![]() | WorkbookView Constructor |
| Name | Description | |
|---|---|---|
![]() | ActiveTab | Gets or sets the first page that will be shown when the document is opened. |
![]() | FirstSheet | Gets or sets the first Worksheet that will be displayed in the tabs at the bottom of the Workbook. |
.NET: net5.0, net5.0-windows, net6.0, net6.0-macos, net6.0-windows, net7.0, net7.0-macos, net7.0-windows, net8.0, net8.0-browser, net8.0-macos, net8.0-windows, net9.0, net9.0-browser, net9.0-macos, net9.0-windows, net10.0, net10.0-browser, net10.0-macos, net10.0-windows.
.NET Framework: net40, net403, net45, net451, net452, net46, net461, net462, net463, net47, net471, net472, net48, net481.