C# Класс Sphere.Plugins.Views.DocumentView

Наследование: System.Windows.Forms.UserControl
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Описание методов

Activate() публичный Метод

Notifies the document that it received focus.
public Activate ( ) : void
Результат void

Copy() публичный Метод

Copies the current selection to the clipboard.
public Copy ( ) : void
Результат void

Cut() публичный Метод

Deletes the selected content and puts it on the clipbord.
public Cut ( ) : void
Результат void

Deactivate() публичный Метод

Notifies the document that it lost focus.
public Deactivate ( ) : void
Результат void

Load() публичный Метод

Loads a file into the document view.
public Load ( string filename ) : void
filename string The filename of the file to load.
Результат void

NewDocument() публичный Метод

Sets up the document view for a new file.
public NewDocument ( ) : bool
Результат bool

Paste() публичный Метод

Pastes the contents of the clipboard into the document.
public Paste ( ) : void
Результат void

Redo() публичный Метод

Reverts the last Undo operation. If the document has been modified since the last Undo, this does nothing.
public Redo ( ) : void
Результат void

Restyle() публичный Метод

Refreshes the document when the UI style has changed.
public Restyle ( ) : void
Результат void

Save() публичный Метод

Saves the contents of the document to a specified filename.
public Save ( string filename ) : void
filename string The filename to save under.
Результат void

Undo() публичный Метод

Undoes the user's last modification to the document.
public Undo ( ) : void
Результат void

ZoomIn() публичный Метод

Increases the document zoom level.
public ZoomIn ( ) : void
Результат void

ZoomOut() публичный Метод

Decreases the document zoom level.
public ZoomOut ( ) : void
Результат void