Class
WorksheetViewState

Manages the visible portion and display settings of a worksheet, including zoom, frozen panes, selection, and gridline visibility.

Definition

Namespace:Telerik.Windows.Documents.Spreadsheet.Model

Assembly:Telerik.Windows.Documents.Spreadsheet.dll

Syntax:

cs-api-definition
public class WorksheetViewState : SheetViewStateBase, ISheetViewState

Inheritance: objectSheetViewStateBaseWorksheetViewState

Implements: ISheetViewState

Inherited Members SheetViewStateBase.TabColorSheetViewStateBase.IsInvalidated

Constructors

WorksheetViewState()

Initializes a new instance of the WorksheetViewState class.

Declaration

cs-api-definition
public WorksheetViewState()

Properties

CircleInvalidData

Gets or sets a value indicating whether to circle the invalid data.

Declaration

cs-api-definition
public bool CircleInvalidData { get; set; }

Property Value

bool

The value indicating whether to circle the invalid data.

IsSelected

Indicates whether this worksheet is the currently active sheet in the workbook.

Declaration

cs-api-definition
public bool IsSelected { get; set; }

Property Value

bool

The value indicating if the sheet is selected.

Pane

Defines the frozen pane configuration for locking rows and columns during scrolling.

Declaration

cs-api-definition
public Pane Pane { get; set; }

Property Value

Pane

The pane.

ScaleFactor

Controls the zoom level for the worksheet view, affecting how content is displayed without changing cell data.

Declaration

cs-api-definition
public Size ScaleFactor { get; set; }

Property Value

Size

The scale factor.

SelectionState

Tracks the active cell and selected ranges within the worksheet.

Declaration

cs-api-definition
public SelectionState SelectionState { get; set; }

Property Value

SelectionState

The state of the selection.

ShowGridLines

Controls the visibility of cell gridlines in the worksheet view.

Declaration

cs-api-definition
public bool ShowGridLines { get; set; }

Property Value

bool

The value indicating if the gridlines should be shown.

ShowRowColHeaders

Controls the visibility of row numbers and column letters in the worksheet view.

Declaration

cs-api-definition
public bool ShowRowColHeaders { get; set; }

Property Value

bool

The value indicating if the row and column headings should be shown.

TopLeftCellIndex

Identifies the cell displayed at the top-left corner of the scrollable viewport, determining the visible area.

Declaration

cs-api-definition
public CellIndex TopLeftCellIndex { get; set; }

Property Value

CellIndex

The index of the top left cell of the screen.

ViewType

Gets or sets a value indicating how the worksheet should be displayed.

Declaration

cs-api-definition
public SheetViewType ViewType { get; set; }

Property Value

SheetViewType

The desired view type.

Methods

FreezePanes(CellIndex, int, int)

Freezes the sheet panes.

Declaration

cs-api-definition
public void FreezePanes(CellIndex fixedPaneTopLeftCellIndex, int frozenRowsCount, int frozenColumnsCount)

Parameters

fixedPaneTopLeftCellIndex

CellIndex

The top left cell index of the fixed pane.

frozenRowsCount

int

The number of rows which will be frozen.

frozenColumnsCount

int

The number of columns which will be frozen.

FreezePanes(CellIndex, int, int, CellIndex)

Freezes the sheet panes.

Declaration

cs-api-definition
public void FreezePanes(CellIndex fixedPaneTopLeftCellIndex, int frozenRowsCount, int frozenColumnsCount, CellIndex scrollableTopLeftCellIndex)

Parameters

fixedPaneTopLeftCellIndex

CellIndex

The top left cell index of the fixed pane.

frozenRowsCount

int

The number of rows which will be frozen.

frozenColumnsCount

int

The number of columns which will be frozen.

scrollableTopLeftCellIndex

CellIndex

The top left cell index of the scrollable pane.

FreezePanes(int, int)

Freezes the sheet panes.

Declaration

cs-api-definition
public void FreezePanes(int frozenRowsCount, int frozenColumnsCount)

Parameters

frozenRowsCount

int

The number of rows which will be frozen.

frozenColumnsCount

int

The number of columns which will be frozen.

ToString()

Returns a string that represents the current object.

Declaration

cs-api-definition
public override string ToString()

Returns

string

A string that represents the current object.

Overrides object.ToString()