C# Class Microsoft.Markdown.Editor.Commands.MdMainController

Main R editor command controller
Inheritance: Microsoft.Languages.Editor.Controller.ViewController
显示文件 Open project: Microsoft/RTVS Class Usage Examples

Public Methods

Method Description
Attach ( ITextView textView, ITextBuffer textBuffer, ICoreShell coreShell ) : MdMainController
FromTextView ( ITextView textView ) : MdMainController
GetContainedCommandTarget ( ) : ICommandTarget

Retrieves command target of secondary language if any. Uses current caret position to detemine if it is in a secondary language block.

Invoke ( System.Guid group, int id, object inputArg, object &outputArg ) : Microsoft.R.Components.Controller.CommandResult
MdMainController ( ITextView textView, ITextBuffer textBuffer, ICoreShell shell ) : System
Status ( System.Guid group, int id ) : CommandStatus

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Disposes main controller and removes it from service manager.

Method Details

Attach() public static method

public static Attach ( ITextView textView, ITextBuffer textBuffer, ICoreShell coreShell ) : MdMainController
textView ITextView
textBuffer ITextBuffer
coreShell ICoreShell
return MdMainController

Dispose() protected method

Disposes main controller and removes it from service manager.
protected Dispose ( bool disposing ) : void
disposing bool
return void

FromTextView() public static method

public static FromTextView ( ITextView textView ) : MdMainController
textView ITextView
return MdMainController

GetContainedCommandTarget() public method

Retrieves command target of secondary language if any. Uses current caret position to detemine if it is in a secondary language block.
public GetContainedCommandTarget ( ) : ICommandTarget
return ICommandTarget

Invoke() public method

public Invoke ( System.Guid group, int id, object inputArg, object &outputArg ) : Microsoft.R.Components.Controller.CommandResult
group System.Guid
id int
inputArg object
outputArg object
return Microsoft.R.Components.Controller.CommandResult

MdMainController() public method

public MdMainController ( ITextView textView, ITextBuffer textBuffer, ICoreShell shell ) : System
textView ITextView
textBuffer ITextBuffer
shell ICoreShell
return System

Status() public method

public Status ( System.Guid group, int id ) : CommandStatus
group System.Guid
id int
return CommandStatus