C# Класс SourceWriter.ViewController

Defines the View Controller for a syntax highlighting text editor view.
Наследование: NSViewController
Показать файл Открыть проект Примеры использования класса

Private Properties

Свойство Тип Описание
AssembleMenu void
ReleaseDesignerOutlets void

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

Метод Описание
ConfigureEditor ( ) : void

Configures the editor with the current user preferences.

PopulateFormattingMenu ( ) : void

Populates the formatting menu with any additional commands defined in the language.

PreviewContents ( ) : void

Previews the current contents of the editor.

PrintDocument ( NSPrintInfo info ) : void

Prints the document that is currently being edited.

ReformatText ( bool updateLanguage ) : void

Re-run syntax highlighting for the entire text of the document.

SetLanguageFromPath ( string path ) : void

Attempts to set the syntax highlighting language based on the extension of the file being opened.

SetLanguageToCSharp ( ) : void

Sets the language to C sharp.

SetLanguageToHTML ( ) : void

Sets the language to HTML.

SetLanguageToMarkDown ( ) : void

Sets the language to MarkDown.

SetLanguageToXML ( ) : void

Sets the language to XML.

UnpopulateFormattingMenu ( ) : void

Unpopulates the formatting menu with the previous languages extra formatting commands.

ViewController ( IntPtr handle ) : System

Initializes a new instance of the SourceWriter.ViewController class.

ViewDidAppear ( ) : void

This method is called after the View being handled by this View Controller has been displayed on screen.

ViewDidLoad ( ) : void

This method is called once the view controller has been inflated from the Storyboard file.

ViewWillAppear ( ) : void

This method is called just before the View being handled by this View Controller will be displayed so you can do any preperation first.

ViewWillDisappear ( ) : void

This method is called before the view being handled by this View Controller is removed from the screen to allow you to do any last minute clean-up.

Приватные методы

Метод Описание
AssembleMenu ( NSMenu menu, List commands ) : void

Recursively build a menu from the set of Language Format Commands.

ReleaseDesignerOutlets ( ) : void

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

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

Configures the editor with the current user preferences.
public ConfigureEditor ( ) : void
Результат void

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

Populates the formatting menu with any additional commands defined in the language.
public PopulateFormattingMenu ( ) : void
Результат void

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

Previews the current contents of the editor.
public PreviewContents ( ) : void
Результат void

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

Prints the document that is currently being edited.
public PrintDocument ( NSPrintInfo info ) : void
info NSPrintInfo A NSPrintInfo object defining the page layout to use /// while printing.
Результат void

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

Re-run syntax highlighting for the entire text of the document.
public ReformatText ( bool updateLanguage ) : void
updateLanguage bool If set to true, the language descriptor will be reloaded as well.
Результат void

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

Attempts to set the syntax highlighting language based on the extension of the file being opened.
public SetLanguageFromPath ( string path ) : void
path string Path.
Результат void

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

Sets the language to C sharp.
public SetLanguageToCSharp ( ) : void
Результат void

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

Sets the language to HTML.
public SetLanguageToHTML ( ) : void
Результат void

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

Sets the language to MarkDown.
public SetLanguageToMarkDown ( ) : void
Результат void

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

Sets the language to XML.
public SetLanguageToXML ( ) : void
Результат void

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

Unpopulates the formatting menu with the previous languages extra formatting commands.
public UnpopulateFormattingMenu ( ) : void
Результат void

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

Initializes a new instance of the SourceWriter.ViewController class.
public ViewController ( IntPtr handle ) : System
handle System.IntPtr Handle.
Результат System

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

This method is called after the View being handled by this View Controller has been displayed on screen.
public ViewDidAppear ( ) : void
Результат void

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

This method is called once the view controller has been inflated from the Storyboard file.
public ViewDidLoad ( ) : void
Результат void

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

This method is called just before the View being handled by this View Controller will be displayed so you can do any preperation first.
public ViewWillAppear ( ) : void
Результат void

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

This method is called before the view being handled by this View Controller is removed from the screen to allow you to do any last minute clean-up.
public ViewWillDisappear ( ) : void
Результат void