Collapse All Expand All Code: All Code: Multiple Code: C# Code: Visual Basic

C#
Visual Basic

Azuki 1.7 Documentation
Document..::..IsDirty Property
Document Class See Also Send Feedback

Gets or sets whether any unsaved modifications exist or not.

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

# Syntax

C#
    public bool IsDirty { get; set; }

Visual Basic
    Public Property IsDirty As Boolean
    	Get
    	Set

#### Property Value

Type: Boolean

# Remarks

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.

# Exceptions

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

# See Also

Document Class
Document..::..Document Members
Sgry.Azuki Namespace