C# Class Sphere.Plugins.Views.DocumentView

Inheritance: System.Windows.Forms.UserControl
Afficher le fichier Open project: Radnen/spherestudio Class Usage Examples

Méthodes publiques

Méthode 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 méthode

Notifies the document that it received focus.
public Activate ( ) : void
Résultat void

Copy() public méthode

Copies the current selection to the clipboard.
public Copy ( ) : void
Résultat void

Cut() public méthode

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

Deactivate() public méthode

Notifies the document that it lost focus.
public Deactivate ( ) : void
Résultat void

Load() public méthode

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

NewDocument() public méthode

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

Paste() public méthode

Pastes the contents of the clipboard into the document.
public Paste ( ) : void
Résultat void

Redo() public méthode

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

Restyle() public méthode

Refreshes the document when the UI style has changed.
public Restyle ( ) : void
Résultat void

Save() public méthode

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

Undo() public méthode

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

ZoomIn() public méthode

Increases the document zoom level.
public ZoomIn ( ) : void
Résultat void

ZoomOut() public méthode

Decreases the document zoom level.
public ZoomOut ( ) : void
Résultat void