C# Class Sphere.Plugins.Views.DocumentView

Inheritance: System.Windows.Forms.UserControl
Exibir arquivo Open project: Radnen/spherestudio Class Usage Examples

Public Methods

Method Description
Activate ( ) : void

Notifies the document that it received focus.

Copy ( ) : void

Copies the current selection to the clipboard.

Cut ( ) : void

Deletes the selected content and puts it on the clipbord.

Deactivate ( ) : void

Notifies the document that it lost focus.

Load ( string filename ) : void

Loads a file into the document view.

NewDocument ( ) : bool

Sets up the document view for a new file.

Paste ( ) : void

Pastes the contents of the clipboard into the document.

Redo ( ) : void

Reverts the last Undo operation. If the document has been modified since the last Undo, this does nothing.

Restyle ( ) : void

Refreshes the document when the UI style has changed.

Save ( string filename ) : void

Saves the contents of the document to a specified filename.

Undo ( ) : void

Undoes the user's last modification to the document.

ZoomIn ( ) : void

Increases the document zoom level.

ZoomOut ( ) : void

Decreases the document zoom level.

Method Details

Activate() public method

Notifies the document that it received focus.
public Activate ( ) : void
return void

Copy() public method

Copies the current selection to the clipboard.
public Copy ( ) : void
return void

Cut() public method

Deletes the selected content and puts it on the clipbord.
public Cut ( ) : void
return void

Deactivate() public method

Notifies the document that it lost focus.
public Deactivate ( ) : void
return void

Load() public method

Loads a file into the document view.
public Load ( string filename ) : void
filename string The filename of the file to load.
return void

NewDocument() public method

Sets up the document view for a new file.
public NewDocument ( ) : bool
return bool

Paste() public method

Pastes the contents of the clipboard into the document.
public Paste ( ) : void
return void

Redo() public method

Reverts the last Undo operation. If the document has been modified since the last Undo, this does nothing.
public Redo ( ) : void
return void

Restyle() public method

Refreshes the document when the UI style has changed.
public Restyle ( ) : void
return void

Save() public method

Saves the contents of the document to a specified filename.
public Save ( string filename ) : void
filename string The filename to save under.
return void

Undo() public method

Undoes the user's last modification to the document.
public Undo ( ) : void
return void

ZoomIn() public method

Increases the document zoom level.
public ZoomIn ( ) : void
return void

ZoomOut() public method

Decreases the document zoom level.
public ZoomOut ( ) : void
return void