C# Class Microsoft.VisualStudio.R.Package.Interop.CommandTargetToOleShim

Implements OLE command target over ICommandTarget allowing managed components to participate in OLE/COM environment like Visual Studio. While a command is executing, the current variant arguments are cached.
Inheritance: IOleCommandTarget, ICommandTarget
Datei anzeigen Open project: Microsoft/RTVS Class Usage Examples

Public Methods

Method Description
CommandTargetToOleShim ( ITextView textView, ICommandTarget commandTarget ) : System
Exec ( System.Guid &guidCommandGroup, uint commandID, uint commandExecOpt, IntPtr variantIn, IntPtr variantOut ) : int
Invoke ( System.Guid group, int id, object inputArg, object &outputArg ) : Microsoft.R.Components.Controller.CommandResult
Invoke ( ICommandTarget commandTarget, System.Guid group, int id, object inputArg, object &outputArg ) : Microsoft.R.Components.Controller.CommandResult
PostProcessInvoke ( Microsoft.R.Components.Controller.CommandResult result, System.Guid group, int id, object inputArg, object &outputArg ) : void
QueryStatus ( System.Guid &guidCommandGroup, uint commandCount, OLECMD commandArray, IntPtr commandText ) : int
Status ( System.Guid group, int id ) : CommandStatus

Private Methods

Method Description
GetShortPositionFromInputArg ( IntPtr location ) : POINTS[]
TranslateInputArg ( System.Guid &guidCommandGroup, uint commandID, IntPtr variantIn ) : object

Method Details

CommandTargetToOleShim() public method

public CommandTargetToOleShim ( ITextView textView, ICommandTarget commandTarget ) : System
textView ITextView
commandTarget ICommandTarget
return System

Exec() public method

public Exec ( System.Guid &guidCommandGroup, uint commandID, uint commandExecOpt, IntPtr variantIn, IntPtr variantOut ) : int
guidCommandGroup System.Guid
commandID uint
commandExecOpt uint
variantIn System.IntPtr
variantOut System.IntPtr
return int

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

Invoke() public method

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

PostProcessInvoke() public method

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

QueryStatus() public method

public QueryStatus ( System.Guid &guidCommandGroup, uint commandCount, OLECMD commandArray, IntPtr commandText ) : int
guidCommandGroup System.Guid
commandCount uint
commandArray OLECMD
commandText System.IntPtr
return int

Status() public method

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