Back to Devexpress

TdxCustomSpreadSheet.Modified Property

vcl-dxspreadsheetcore-dot-tdxcustomspreadsheet-e026e33d.md

latest2.2 KB
Original Source

TdxCustomSpreadSheet.Modified Property

Specifies whether the control treats a loaded document as modified.

Declaration

delphi
property Modified: Boolean read; write; default False;

Property Value

TypeDefault
BooleanFalse

Remarks

You can use this property to track and reset a loaded document’s content state. The property value automatically changes to True every time an operation is performed in a loaded document (that includes a worksheet’s CreateCell function calls that expand the content area without any visual changes).

You can set the Modified property to False anytime to reset the content state of the document and make the control treat it as unmodified. This is particularly useful if you need to implement a custom “Save” command that becomes available only when there are unsaved changes in the document.

Note

The OnModifiedChanged event occurs every time the Modified property value changes.

The default Modifed property value is False.

See Also

TdxSpreadSheetChange

TdxSpreadSheetChanges

TdxCustomSpreadSheet.LoadFromFile

TdxCustomSpreadSheet.LoadFromStream

TdxCustomSpreadSheet.SaveToFile

TdxCustomSpreadSheet.SaveToStream

TdxCustomSpreadSheet Class

TdxCustomSpreadSheet Members

dxSpreadSheetCore Unit