Back to Devexpress

SpreadsheetHistory.IsEnabled Property

officefileapi-devexpress-dot-spreadsheet-dot-spreadsheethistory-7ce2bf91.md

latest3.6 KB
Original Source

SpreadsheetHistory.IsEnabled Property

Indicates whether or not to track the workbook activity.

Namespace : DevExpress.Spreadsheet

Assembly : DevExpress.Spreadsheet.v25.2.Core.dll

NuGet Package : DevExpress.Spreadsheet.Core

Declaration

csharp
bool IsEnabled { get; set; }
vb
Property IsEnabled As Boolean

Property Value

TypeDescription
Boolean

true , if the history of operations is tracked; otherwise, false.

|

Remarks

To trace the history of changes made in a workbook, set the IsEnabled property to true (the default value for this property is false , which is the opposite behavior of a SpreadsheetHistory object created in the SpreadsheetControl user interface).

The following code snippets (auto-collected from DevExpress Examples) contain references to the IsEnabled property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

winforms-spreadsheet-control-create-a-data-entry-form/CS/DataEntryFormSample/MainForm.cs#L31

csharp
spreadsheetControl1.LoadDocument("PayrollCalculatorTemplate.xlsx");
    spreadsheetControl1.Document.History.IsEnabled = false;
}

wpf-spreadsheet-control-create-a-data-entry-form/CS/WpfDataEntryFormSample/MainWindow.xaml.cs#L27

csharp
spreadsheetControl1.LoadDocument("PayrollCalculatorTemplate.xlsx");
    spreadsheetControl1.Document.History.IsEnabled = false;
}

winforms-spreadsheet-control-create-a-data-entry-form/VB/DataEntryFormSample/MainForm.vb#L26

vb
spreadsheetControl1.LoadDocument("PayrollCalculatorTemplate.xlsx")
    spreadsheetControl1.Document.History.IsEnabled = False
End Sub

wpf-spreadsheet-control-create-a-data-entry-form/VB/WpfDataEntryFormSample/MainWindow.xaml.vb#L25

vb
spreadsheetControl1.LoadDocument("PayrollCalculatorTemplate.xlsx")
    spreadsheetControl1.Document.History.IsEnabled = False
End Sub

See Also

SpreadsheetHistory Interface

SpreadsheetHistory Members

DevExpress.Spreadsheet Namespace