Xceed Workbooks for .NET v3.0 Documentation
Xceed.Workbooks.NET Assembly / Xceed.Workbooks.NET Namespace / SheetView Class
Members Example


In This Topic
    SheetView Class
    In This Topic
    Represents a view displaying a single sheet from a Worksheet.
    Syntax
    'Declaration
     
    
    Public Class SheetView 
       Inherits WorksheetElement
    'Usage
     
    
    Dim instance As SheetView
    public class SheetView : WorksheetElement 
    Remarks
    Currently, only one SheetView per Worksheet is supported.
    Example
    using( var doc = Workbook.Load( "test.xlsx") )
      {
        var worksheet = doc.Worksheets[ 0 ];        
        worksheet.SheetView.ActiveCellAddress = “C2”;
        worksheet.SheetView.TopLeftCellAddress = “B1”;
        doc.Save();
      }
    Inheritance Hierarchy

    System.Object
       Xceed.Workbooks.NET.WorkbookElement
          Xceed.Workbooks.NET.WorksheetElement
             Xceed.Workbooks.NET.SheetView

    Public Properties
     NameDescription
    Public PropertyGets or sets the active Cell in the Worksheet, which is the Cell in focus.  
    Public PropertyGets or sets the number of frozen Columns in the Worksheet.  
    Public PropertyGets or sets the number of frozen Rows in the Worksheet.    
    Public PropertyGets or sets the number of Columns after which a vertical split will appear in the Worksheet.     
    Public PropertyGets or sets the number of Rows after which a horizontal split will appear in the Worksheet.  
    Public PropertyGets or sets the Cell that will be displayed in the top left position of the SheetView.  
    Public PropertyGets or sets the WorksheetViewType associated with the Worksheet.  
    Public Property

    Gets or sets the Zoom level used when the Worksheet is displayed in Normal mode.

     
    Public Property

    Gets or sets the Zoom level used when the Worksheet is displayed in PageBreakPreview mode.

     
    Public Property

    Gets or sets the Zoom level used when the Worksheet is displayed in PageLayout mode.

     
    Top
    Requirements

    Target Platforms: Windows 11, Windows 10, 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