C# 클래스 SphereStudio.DocumentTab

Represents an open document in the IDE.
상속: IDisposable
파일 보기 프로젝트 열기: Radnen/spherestudio 1 사용 예제들

공개 메소드들

메소드 설명
Activate ( ) : void

Makes the tab active and notifies the underlying document that it has received focus.

Close ( bool forceClose = false ) : bool

Closes the tab.

Copy ( ) : void

Sends a Copy command to the document view.

Cut ( ) : void

Sends a Cut command to the document view.

Deactivate ( ) : void

Notifies the underlying document that it has lost focus.

Dispose ( ) : void
DocumentTab ( MainWindow ide, DocumentView view, string fileName = null, bool restoreView = false ) : System

Creates a new Sphere Studio document tab.

Paste ( ) : void

Sends a Paste command to the document view.

PromptSave ( ) : bool

Prompts the user to save a modified document. The document will remain open afterwards.

Redo ( ) : void

Sends a Redo command to the document view.

Restyle ( ) : void

Notifies the document that a styling option changed.

Save ( string path = null ) : bool

Saves the document in this tab. If the document hasn't been saved yet, the user will be asked to provide a filename.

SaveAs ( string path = null ) : bool

Saves the document in this tab with a filename provided by the user.

SaveIfDirty ( ) : bool
Undo ( ) : void

Sends an Undo command to the document view.

ZoomIn ( ) : void

Sends a Zoom In command to the document view.

ZoomOut ( ) : void

Sends a Zoom Out command to the document view.

비공개 메소드들

메소드 설명
SaveViewState ( ) : void
UpdateTabText ( ) : void
on_BreakpointSet ( object sender, BreakpointChangedEventArgs e ) : void
on_DirtyChanged ( object sender, EventArgs e ) : void
on_FormClosed ( object sender, System.Windows.Forms.FormClosedEventArgs e ) : void
on_FormClosing ( object sender, FormClosingEventArgs e ) : void

메소드 상세

Activate() 공개 메소드

Makes the tab active and notifies the underlying document that it has received focus.
public Activate ( ) : void
리턴 void

Close() 공개 메소드

Closes the tab.
public Close ( bool forceClose = false ) : bool
forceClose bool 'true' to bypass the Unsaved Changes prompt.
리턴 bool

Copy() 공개 메소드

Sends a Copy command to the document view.
public Copy ( ) : void
리턴 void

Cut() 공개 메소드

Sends a Cut command to the document view.
public Cut ( ) : void
리턴 void

Deactivate() 공개 메소드

Notifies the underlying document that it has lost focus.
public Deactivate ( ) : void
리턴 void

Dispose() 공개 메소드

public Dispose ( ) : void
리턴 void

DocumentTab() 공개 메소드

Creates a new Sphere Studio document tab.
public DocumentTab ( MainWindow ide, DocumentView view, string fileName = null, bool restoreView = false ) : System
ide MainWindow The IDE form that the tab will be created in.
view Sphere.Plugins.Views.DocumentView The IDocumentView the tab is hosting.
fileName string The fully-qualified filename of the document, or null if untitled.
restoreView bool 'true' to restore the last saved view state. Has no effect on untitled tabs.
리턴 System

Paste() 공개 메소드

Sends a Paste command to the document view.
public Paste ( ) : void
리턴 void

PromptSave() 공개 메소드

Prompts the user to save a modified document. The document will remain open afterwards.
public PromptSave ( ) : bool
리턴 bool

Redo() 공개 메소드

Sends a Redo command to the document view.
public Redo ( ) : void
리턴 void

Restyle() 공개 메소드

Notifies the document that a styling option changed.
public Restyle ( ) : void
리턴 void

Save() 공개 메소드

Saves the document in this tab. If the document hasn't been saved yet, the user will be asked to provide a filename.
public Save ( string path = null ) : bool
path string The default directory for the Save As dialog.
리턴 bool

SaveAs() 공개 메소드

Saves the document in this tab with a filename provided by the user.
public SaveAs ( string path = null ) : bool
path string The default directory for the Save As dialog.
리턴 bool

SaveIfDirty() 공개 메소드

public SaveIfDirty ( ) : bool
리턴 bool

Undo() 공개 메소드

Sends an Undo command to the document view.
public Undo ( ) : void
리턴 void

ZoomIn() 공개 메소드

Sends a Zoom In command to the document view.
public ZoomIn ( ) : void
리턴 void

ZoomOut() 공개 메소드

Sends a Zoom Out command to the document view.
public ZoomOut ( ) : void
리턴 void