Class
Sheet

Abstract base for all sheet types in a workbook, providing naming, visibility, protection, and layout coordination for derived sheet implementations (Worksheet, future chart sheets).

Definition

Namespace:Telerik.Windows.Documents.Spreadsheet.Model

Assembly:Telerik.Windows.Documents.Spreadsheet.dll

Syntax:

cs-api-definition
public abstract class Sheet : NotifyPropertyChangedBase, INotifyPropertyChanged, ISheet, IDisposable

Inheritance: objectNotifyPropertyChangedBaseSheet

Derived Classes: Worksheet

Implements: IDisposableINotifyPropertyChangedISheet

Inherited Members NotifyPropertyChangedBase.OnPropertyChanged(string)NotifyPropertyChangedBase.OnPropertyChanged(PropertyChangedEventArgs)NotifyPropertyChangedBase.PropertyChanged

Properties

IsLayoutUpdateSuspended

Indicates whether layout invalidation events are deferred, typically during batch operations to avoid redundant recalculations.

Declaration

cs-api-definition
public bool IsLayoutUpdateSuspended { get; }

Property Value

bool

The value indicating whether the layout update is suspended.

Implements ISheet.IsLayoutUpdateSuspended

IsProtected

Indicates whether sheet protection is currently enforced, restricting user modifications based on protection options.

Declaration

cs-api-definition
public bool IsProtected { get; }

Property Value

bool

The is protected.

Name

User-visible sheet name displayed on tabs, validated for uniqueness and Excel naming constraints (length, forbidden characters).

Declaration

cs-api-definition
public string Name { get; set; }

Property Value

string

The name of the sheet.

Implements ISheet.Name

SheetPageSetup

Gets the sheet page setup.

Declaration

cs-api-definition
protected abstract SheetPageSetupBase SheetPageSetup { get; }

Property Value

SheetPageSetupBase

The sheet page setup.

Type

Discriminates the sheet category (Worksheet, future chart sheets) to route type-specific operations.

Declaration

cs-api-definition
public abstract SheetType Type { get; }

Property Value

SheetType

The type of the sheet.

Implements ISheet.Type

Visibility

Controls whether the sheet is visible, hidden, or very hidden (hidden from UI visibility toggles).

Declaration

cs-api-definition
public SheetVisibility Visibility { get; set; }

Property Value

SheetVisibility

The visibility.

Implements ISheet.Visibility

Workbook

Workbook that owns this sheet, assigned once when the sheet is added to a workbook's sheet collection.

Declaration

cs-api-definition
public Workbook Workbook { get; }

Property Value

Workbook

The workbook.

Implements ISheet.Workbook

Methods

BeginUndoGroup()

Begins a logical undo group so that subsequent commands are undone or redone together as a single user action.

Declaration

cs-api-definition
public void BeginUndoGroup()

CreateViewState()

Creates the view state object that tracks panes, selection, and scroll position for this sheet type.

Declaration

cs-api-definition
protected abstract ISheetViewState CreateViewState()

Returns

ISheetViewState

Dispose()

Releases resources held by the sheet, primarily clearing the workbook reference; call when removing the sheet from a workbook.

Declaration

cs-api-definition
public void Dispose()

Implements IDisposable.Dispose()

Dispose(bool)

Releases managed resources when disposing is true, clearing the workbook reference and preventing reuse.

Declaration

cs-api-definition
protected virtual void Dispose(bool disposing)

Parameters

disposing

bool

The disposing.

EndUndoGroup()

Closes the current logical undo group, allowing the grouped commands to be undone or redone as a unit.

Declaration

cs-api-definition
public void EndUndoGroup()

OnIsProtectedChanged()

Raises the IsProtectedChanged event, notifying subscribers that protection status has toggled.

Declaration

cs-api-definition
protected virtual void OnIsProtectedChanged()

OnLayoutInvalidated()

Raises the LayoutInvalidated event, signaling that UI should recalculate positions and sizes.

Declaration

cs-api-definition
protected virtual void OnLayoutInvalidated()

ResumeLayoutUpdate()

Re-enables layout invalidation notifications and raises any deferred LayoutInvalidated event if changes occurred.

Declaration

cs-api-definition
protected virtual void ResumeLayoutUpdate()

SuspendLayoutUpdate()

Defers layout invalidation notifications until ResumeLayoutUpdate is called, improving performance during batch modifications.

Declaration

cs-api-definition
protected virtual void SuspendLayoutUpdate()

Events

IsProtectedChanged

Raised when sheet protection is applied or removed, signaling that UI should update editing controls.

Declaration

cs-api-definition
public event EventHandler IsProtectedChanged

Event Value

EventHandler

LayoutInvalidated

Raised when sheet content changes require layout recalculation, unless layout updates are suspended.

Declaration

cs-api-definition
public event EventHandler LayoutInvalidated

Event Value

EventHandler

Implements ISheet.LayoutInvalidated

NameChanged

Raised when the sheet's name changes, allowing UI to refresh tab labels.

Declaration

cs-api-definition
public event EventHandler NameChanged

Event Value

EventHandler