-
Notifications
You must be signed in to change notification settings - Fork 0
DiGi.Tas.TIC.Classes
Represents a document wrapper for TIC documents, providing functionality to load, save, and close the underlying document resource.
public class Document : DiGi.Tas.Core.Classes.Document<TIC.Document>Inheritance System.Object → DiGi.Tas.Core.Classes.Document<TIC.Document> → 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 physical path to the document file.
readOnly System.Boolean
A value indicating whether the document should be opened in read-only mode.
Closes the underlying TIC document resource.
public override void Close();Loads the document from the specified path or creates a new one if the file does not exist.
protected override bool Load(string? path=null);path System.String
The optional path to the document file to be loaded.
System.Boolean
true if the load operation was successful; otherwise, false.
Saves the current state of the document to the disk if it is not read-only and exists.
public override bool Save();System.Boolean
true if the document was saved successfully; otherwise, false.