• Product Bundles

    DevCraft

    All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:

    • NEW: Design Kits for Figma
    • Online Training
    • Document Processing Library
    • Embedded Reporting for web and desktop
    Web
    Kendo UI UI for jQuery UI for Angular UI for React UI for Vue UI for ASP.NET AJAX UI for ASP.NET MVC UI for ASP.NET Core UI for Blazor UI for Silverlight UI for PHP UI for JSP
    Mobile
    UI for .NET MAUI UI for Xamarin
    Document Management
    Telerik Document Processing
    Desktop
    UI for .NET MAUI UI for WinUI UI for WinForms UI for WPF UI for UWP
    Reporting & Mocking
    Telerik Reporting Telerik Report Server Telerik JustMock
    Automated Testing
    Test Studio Test Studio Dev Edition
    CMS
    Sitefinity
    UI/UX Design
    Unite UX
    Debugging
    Fiddler Fiddler Everywhere Fiddler Classic Fiddler Jam FiddlerCap FiddlerCore
    Extended Reality
    UI for Unity XR
    Free Tools
    JustAssembly JustDecompile VB.NET to C# Converter Testing Framework
    View all products
  • Overview
  • Docs & Support
  • Pricing
  • Search
  • Shopping cart
    • Account Overview
    • Your Licenses
    • Support Center
    • Forum Profile
    • Payment Methods
    • Edit Profile
    • Log out
  • Login
  • Contact Us
  • Try now

Class WorkbookHistory

Represents the history of a workbook.

Inheritance
System.Object
WorkbookHistory
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Telerik.Windows.Documents.Spreadsheet.History
Assembly: Telerik.Windows.Documents.Spreadsheet.dll

Syntax

public class WorkbookHistory

Fields

DefaultDepth

The default depth of the workbook history.

Declaration
public const int DefaultDepth = 2147483647
Field Value
System.Int32

Properties

CanRedo

Gets a value indicating whether redo can be performed.

Declaration
public bool CanRedo { get; }
Property Value
System.Boolean

The value indicating whether redo can be performed.

CanUndo

Gets a value indicating whether undo can be performed.

Declaration
public bool CanUndo { get; }
Property Value
System.Boolean

The value indicating whether undo can be performed.

Depth

Gets or sets the depth of the history.

Declaration
public int Depth { get; set; }
Property Value
System.Int32

The depth of the history.

IsEnabled

Gets or sets a value indicating whether history is enabled.

Declaration
public bool IsEnabled { get; set; }
Property Value
System.Boolean

The value indicating whether history is enabled.

IsInUndoGroup

Gets a value indicating whether the history is currently recording an undo group.

Declaration
public bool IsInUndoGroup { get; }
Property Value
System.Boolean

The value indicating whether the history is currently recording an undo group.

Workbook

Gets the workbook.

Declaration
public Workbook Workbook { get; }
Property Value
Workbook

The workbook.

Methods

BeginUndoGroup()

Begins the undo group.

Declaration
public void BeginUndoGroup()

CancelUndoGroup()

Cancels the undo group.

Declaration
public void CancelUndoGroup()

Clear()

Clears the workbook history.

Declaration
public void Clear()

EndUndoGroup()

Ends the undo group.

Declaration
public void EndUndoGroup()

OnCleared()

Called when history has been cleared.

Declaration
protected virtual void OnCleared()

OnRecordExecuted(WorkbookHistoryAction, Boolean)

Called when a record is executed.

Declaration
protected virtual void OnRecordExecuted(WorkbookHistoryAction historyAction, bool isMerged)
Parameters
WorkbookHistoryAction historyAction

The history action.

System.Boolean isMerged

This parameter is not used and is reserved for future use.

OnRecordExecuting()

Called when a record is executing.

Declaration
protected virtual void OnRecordExecuting()

OnRedoExecuted(WorkbookHistoryAction)

Called when redo has been executed.

Declaration
protected virtual void OnRedoExecuted(WorkbookHistoryAction historyAction)
Parameters
WorkbookHistoryAction historyAction

The history action.

OnRedoExecuting(WorkbookHistoryAction)

Called when redo is being executed.

Declaration
protected virtual void OnRedoExecuting(WorkbookHistoryAction historyAction)
Parameters
WorkbookHistoryAction historyAction

The history action.

OnUndoExecuted(WorkbookHistoryAction)

Called when undo has been executed.

Declaration
protected virtual void OnUndoExecuted(WorkbookHistoryAction historyAction)
Parameters
WorkbookHistoryAction historyAction

The history action.

OnUndoExecuting(WorkbookHistoryAction)

Called when undo is being executed.

Declaration
protected virtual void OnUndoExecuting(WorkbookHistoryAction historyAction)
Parameters
WorkbookHistoryAction historyAction

The history action.

Redo()

Performs the redo action.

Declaration
public bool Redo()
Returns
System.Boolean

The value indicating whether the redo was successfully performed.

Undo()

Performs the undo action.

Declaration
public bool Undo()
Returns
System.Boolean

The value indicating whether the undo was successfully performed.

Events

Cleared

Occurs when history has been cleared.

Declaration
public event EventHandler Cleared
Event Type
System.EventHandler

RecordExecuted

Occurs when a record has executed.

Declaration
public event EventHandler<WorkbookHistoryRecordExecutedEventArgs> RecordExecuted
Event Type
System.EventHandler<WorkbookHistoryRecordExecutedEventArgs>

RecordExecuting

Occurs when a record is executing.

Declaration
public event EventHandler RecordExecuting
Event Type
System.EventHandler

RedoExecuted

Occurs when redo has been executed.

Declaration
public event EventHandler<WorkbookHistoryEventArgs> RedoExecuted
Event Type
System.EventHandler<WorkbookHistoryEventArgs>

RedoExecuting

Occurs when redo is being executed.

Declaration
public event EventHandler<WorkbookHistoryEventArgs> RedoExecuting
Event Type
System.EventHandler<WorkbookHistoryEventArgs>

UndoExecuted

Occurs when undo has been executed.

Declaration
public event EventHandler<WorkbookHistoryEventArgs> UndoExecuted
Event Type
System.EventHandler<WorkbookHistoryEventArgs>

UndoExecuting

Occurs when undo is being executed.

Declaration
public event EventHandler<WorkbookHistoryEventArgs> UndoExecuting
Event Type
System.EventHandler<WorkbookHistoryEventArgs>

Was this article helpful?

Tell us how we can improve this article

Skip
Getting Started
  • Getting Started
Support Resources
  • Documentation
Community
  • Forums
  • Blogs
  • Document Processing Feedback Portal

Copyright © 2018 Progress Software Corporation and/or its subsidiaries or affiliates.
All Rights Reserved.

Progress, Telerik, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries. See Trademarks for appropriate markings.