共用方式為


ShowContextMenuCommandArgs Constructors

Definition

Overloads

ShowContextMenuCommandArgs(ITextView, ITextBuffer)

Creates an empty instance of the ShowContextMenuCommandArgs, for the purpose of passing to the GetCommandState(T, Func<CommandState>) to determine the state of the command.

ShowContextMenuCommandArgs(ITextView, ITextBuffer, Double, Double)

Creates an instance of the ShowContextMenuCommandArgs to execute the command.

ShowContextMenuCommandArgs(ITextView, ITextBuffer)

Creates an empty instance of the ShowContextMenuCommandArgs, for the purpose of passing to the GetCommandState(T, Func<CommandState>) to determine the state of the command.

public:
 ShowContextMenuCommandArgs(Microsoft::VisualStudio::Text::Editor::ITextView ^ textView, Microsoft::VisualStudio::Text::ITextBuffer ^ subjectBuffer);
public ShowContextMenuCommandArgs (Microsoft.VisualStudio.Text.Editor.ITextView textView, Microsoft.VisualStudio.Text.ITextBuffer subjectBuffer);
new Microsoft.VisualStudio.Text.Editor.Commanding.Commands.ShowContextMenuCommandArgs : Microsoft.VisualStudio.Text.Editor.ITextView * Microsoft.VisualStudio.Text.ITextBuffer -> Microsoft.VisualStudio.Text.Editor.Commanding.Commands.ShowContextMenuCommandArgs
Public Sub New (textView As ITextView, subjectBuffer As ITextBuffer)

Parameters

textView
ITextView
subjectBuffer
ITextBuffer

Applies to

ShowContextMenuCommandArgs(ITextView, ITextBuffer, Double, Double)

Creates an instance of the ShowContextMenuCommandArgs to execute the command.

public:
 ShowContextMenuCommandArgs(Microsoft::VisualStudio::Text::Editor::ITextView ^ textView, Microsoft::VisualStudio::Text::ITextBuffer ^ subjectBuffer, double x, double y);
public ShowContextMenuCommandArgs (Microsoft.VisualStudio.Text.Editor.ITextView textView, Microsoft.VisualStudio.Text.ITextBuffer subjectBuffer, double x, double y);
new Microsoft.VisualStudio.Text.Editor.Commanding.Commands.ShowContextMenuCommandArgs : Microsoft.VisualStudio.Text.Editor.ITextView * Microsoft.VisualStudio.Text.ITextBuffer * double * double -> Microsoft.VisualStudio.Text.Editor.Commanding.Commands.ShowContextMenuCommandArgs
Public Sub New (textView As ITextView, subjectBuffer As ITextBuffer, x As Double, y As Double)

Parameters

textView
ITextView
subjectBuffer
ITextBuffer
x
Double
y
Double

Applies to