SpreadsheetGear 2017
WorkbookView Class
Members 






SpreadsheetGear.Windows.Forms Namespace : WorkbookView Class
Provides a fully functional spreadsheet control which supports rich functionality including familiar keyboard and mouse selections, in-cell editing, a FormulaBar control, goto, cut, copy, paste, clear, undo, redo, printing, interruptible background calculation, real time workbook updates, multiple workbooks, DisplayReference, WorkbookDesigner, WorkbookExplorer, RangeExplorer, ChartExplorer, ShapeExplorer and more.
Object Model
WorkbookView Class
Syntax
'Declaration
 
<System.ComponentModel.DefaultEventAttribute("RangeSelectionChanged")>
<System.ComponentModel.DesignerAttribute("SpreadsheetGear.Design.WorkbookViewControlDesigner, SpreadsheetGear2017.Design")>
<System.Drawing.ToolboxBitmapAttribute(SpreadsheetGear.Windows.Forms.WorkbookView, "WorkbookView.ico")>
<System.ComponentModel.DefaultPropertyAttribute("Text")>
<System.ComponentModel.Design.Serialization.DesignerSerializerAttribute("System.Windows.Forms.Design.ControlCodeDomSerializer, System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", "System.ComponentModel.Design.Serialization.CodeDomSerializer, System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")>
<System.ComponentModel.ToolboxItemFilterAttribute("System.Windows.Forms")>
<System.ComponentModel.DesignerCategoryAttribute("Component")>
Public Class WorkbookView 
   Inherits System.Windows.Forms.Control
'Usage
 
Dim instance As WorkbookView
[System.ComponentModel.DefaultEvent("RangeSelectionChanged")]
[System.ComponentModel.Designer("SpreadsheetGear.Design.WorkbookViewControlDesigner, SpreadsheetGear2017.Design")]
[System.Drawing.ToolboxBitmap(SpreadsheetGear.Windows.Forms.WorkbookView, "WorkbookView.ico")]
[System.ComponentModel.DefaultProperty("Text")]
[System.ComponentModel.Design.Serialization.DesignerSerializer("System.Windows.Forms.Design.ControlCodeDomSerializer, System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", "System.ComponentModel.Design.Serialization.CodeDomSerializer, System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
[System.ComponentModel.ToolboxItemFilter("System.Windows.Forms")]
[System.ComponentModel.DesignerCategory("Component")]
public class WorkbookView : System.Windows.Forms.Control 
public class WorkbookView = class(System.Windows.Forms.Control)
System.ComponentModel.DefaultEventAttribute("RangeSelectionChanged")
System.ComponentModel.DesignerAttribute("SpreadsheetGear.Design.WorkbookViewControlDesigner, SpreadsheetGear2017.Design")
System.Drawing.ToolboxBitmapAttribute(SpreadsheetGear.Windows.Forms.WorkbookView, "WorkbookView.ico")
System.ComponentModel.DefaultPropertyAttribute("Text")
System.ComponentModel.Design.Serialization.DesignerSerializerAttribute("System.Windows.Forms.Design.ControlCodeDomSerializer, System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", "System.ComponentModel.Design.Serialization.CodeDomSerializer, System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")
System.ComponentModel.ToolboxItemFilterAttribute("System.Windows.Forms")
System.ComponentModel.DesignerCategoryAttribute("Component")
public class WorkbookView extends System.Windows.Forms.Control
[System.ComponentModel.DefaultEvent("RangeSelectionChanged")]
[System.ComponentModel.Designer("SpreadsheetGear.Design.WorkbookViewControlDesigner, SpreadsheetGear2017.Design")]
[System.Drawing.ToolboxBitmap(SpreadsheetGear.Windows.Forms.WorkbookView, "WorkbookView.ico")]
[System.ComponentModel.DefaultProperty("Text")]
[System.ComponentModel.Design.Serialization.DesignerSerializer("System.Windows.Forms.Design.ControlCodeDomSerializer, System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", "System.ComponentModel.Design.Serialization.CodeDomSerializer, System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
[System.ComponentModel.ToolboxItemFilter("System.Windows.Forms")]
[System.ComponentModel.DesignerCategory("Component")]
public __gc class WorkbookView : public System.Windows.Forms.Control 
[System.ComponentModel.DefaultEvent("RangeSelectionChanged")]
[System.ComponentModel.Designer("SpreadsheetGear.Design.WorkbookViewControlDesigner, SpreadsheetGear2017.Design")]
[System.Drawing.ToolboxBitmap(SpreadsheetGear.Windows.Forms.WorkbookView, "WorkbookView.ico")]
[System.ComponentModel.DefaultProperty("Text")]
[System.ComponentModel.Design.Serialization.DesignerSerializer("System.Windows.Forms.Design.ControlCodeDomSerializer, System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", "System.ComponentModel.Design.Serialization.CodeDomSerializer, System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
[System.ComponentModel.ToolboxItemFilter("System.Windows.Forms")]
[System.ComponentModel.DesignerCategory("Component")]
public ref class WorkbookView : public System.Windows.Forms.Control 
Remarks

The WorkbookView control adheres to the standard Windows Forms threading model. Accessing any members of a WorkbookView must be done from the thread which created the WorkbookView.

For important information about the threading model of SpreadsheetGear see GetLock and ReleaseLock.

To modify the workbook(s) associated with a WorkbookView at design time, right click on the WorkbookView and select Workbook Designer. From the Workbook Designer, you can open, edit, format, save and close workbooks. The workbooks which are left open in the Workbook Designer when the designer is closed will be saved with the form containing the WorkbookView, and will be loaded into the workbook set associated with the WorkbookView when the form is created at run time.

The RangeSelection, ActiveCell, ActiveWorksheet, ActiveWorkbook and ActiveWorkbookSet properties are the most commonly used workbook view properties.

Use the DisplayReference and DisplayReferenceName properties to control which workbook or which worksheet ranges are displayed in the workbook view. The DisplayReference property provides the ability to display multiple workbooks in a single workbook view control, as well as the ability to limit what the user of the workbook view control is able to see.

The RangeChanged, RangeSelectionChanged and Calculate events are the most commonly used workbook view events.

Inheritance Hierarchy

System.Object
   System.MarshalByRefObject
      System.ComponentModel.Component
         System.Windows.Forms.Control
            SpreadsheetGear.Windows.Forms.WorkbookView

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

WorkbookView Members
SpreadsheetGear.Windows.Forms Namespace
FormulaBar Property
DisplayReference Property
WorkbookDesigner Class