Gets or sets whether any unsaved modifications exist or not.

Namespace: Sgry.Azuki
Assembly: Azuki (in Azuki.dll) Version:


public bool IsDirty { get; set; }
Visual Basic
Public Property IsDirty As Boolean


This property will be true if there is any unsaved modifications. Although Azuki maintains almost all modification history in itself, it cannot detect when the content was saved because saving content to file or other means is done outside of it; done by the application using Azuki. Because of this, application is responsible to set this property to False on saving content manually.

Note that attempting to set this property True by application code will raise an InvalidOperationException. Because any document cannot be turned 'dirty' without modification, and modification by Document.Replace automatically set this property True so doing so in application code is not needed.


System..::..InvalidOperationException True was set as a new value. - OR - Modified while grouping UNDO actions.

See Also