C# 클래스 SourceWriter.ViewController

Defines the View Controller for a syntax highlighting text editor view.
상속: NSViewController
파일 보기 프로젝트 열기: xamarin/mac-samples 1 사용 예제들

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