C# 클래스 Kajabity.Tools.Forms.DocumentManager

A base class to manage the lifecycle of a Document by creating new, empty documents, Opening existing documents, tracking the modification state of documents and Saving documents. Extend this class to implement methods to handle specific document types.
파일 보기 프로젝트 열기: Kajabity/Kajabity-Tools 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
document Document

공개 메소드들

메소드 설명
Close ( ) : void

Close any currently open document - setting state appropriately. Override this method to perform any necessary cleanup (releasing resources, etc.) for the Document instance then call this base class (base.Close();).

DocumentManager ( ) : System

Construct an empty DocumentManager instance.

Load ( string filename ) : void

Performs base class setup of loaded filename and status. Override to load a file into a Document instance then call this base class once document set (base.Load(filename);).

NewDocument ( ) : void

Performs base initialisation of the document name and status of a new document. Override this method to provide initialisation for specific Document types then call this base class once document set (base.NewDocument();).

Save ( string filename ) : void

Performs base class setup of Saved filename and status. Override to save a file from a Document instance then call this base class (base.Save(filename);).

메소드 상세

Close() 공개 메소드

Close any currently open document - setting state appropriately. Override this method to perform any necessary cleanup (releasing resources, etc.) for the Document instance then call this base class (base.Close();).
public Close ( ) : void
리턴 void

DocumentManager() 공개 메소드

Construct an empty DocumentManager instance.
public DocumentManager ( ) : System
리턴 System

Load() 공개 메소드

Performs base class setup of loaded filename and status. Override to load a file into a Document instance then call this base class once document set (base.Load(filename);).
public Load ( string filename ) : void
filename string filename and path loaded
리턴 void

NewDocument() 공개 메소드

Performs base initialisation of the document name and status of a new document. Override this method to provide initialisation for specific Document types then call this base class once document set (base.NewDocument();).
public NewDocument ( ) : void
리턴 void

Save() 공개 메소드

Performs base class setup of Saved filename and status. Override to save a file from a Document instance then call this base class (base.Save(filename);).
public Save ( string filename ) : void
filename string filename and path to save to
리턴 void

프로퍼티 상세

document 보호되어 있는 프로퍼티

Holds a reference to the currently loaded document - or null if none loaded.
protected Document,Kajabity.Tools.Forms document
리턴 Document