-
Notifications
You must be signed in to change notification settings - Fork 0
DiGi.Tas.TBD.Classes
Provides functionality for managing TBD documents, including loading, saving, and closing operations.
public class Document : DiGi.Tas.Core.Classes.Document<TBD.TBDDocument>Inheritance System.Object → DiGi.Core.Interfaces.IObject → DiGi.Tas.Core.Classes.Document<TBD.TBDDocument> → Document
Initializes a new instance of the Document class.
public Document();Initializes a new instance of the Document class with a specified file path and read-only status.
public Document(string path, bool readOnly=false);path System.String
The file system path to the document.
readOnly System.Boolean
Indicates whether the document should be opened in read-only mode.
Closes the underlying TBD document instance.
public override void Close();Loads a TBD document from the specified path or creates a new one if it does not exist.
protected override bool Load(string? path=null);path System.String
The optional file system path to load. If null or empty, no loading is performed.
System.Boolean
true if the operation was successful or skipped; otherwise, false.
Saves the current state of the TBD document to disk.
public override bool Save();System.Boolean
true if the document was saved successfully; otherwise, false.