ShowContextMenuCommandArgs Class

Definition

C++
public ref class ShowContextMenuCommandArgs sealed : Microsoft::VisualStudio::Text::Editor::Commanding::EditorCommandArgs
Inheritance
ShowContextMenuCommandArgs

Constructors

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.

Properties

SubjectBuffer

A subject buffer to execute a command on.

(Inherited from EditorCommandArgs)
TextView

An ITextView to execute a command on.

(Inherited from EditorCommandArgs)
X

X coordinate for the context menu, optionally provided by the caller of the command.

Y

Y coordinate for the context menu, optionally provided by the caller of the command.

Applies to

Produit Versions
Visual Studio SDK 2019, 2022