Check if the layer was modified by editing.
// C# public bool MustSave();
' VisualBasic Public Function MustSave() As Boolean
// Oxygene public function MustSave : Boolean; virtual;
| bool |
|True, if layer was modified.|
Use this method to check if the layer was edited any way. If Yes you should save a project to keep changes.