Udostępnij za pośrednictwem


ShowContextMenuCommandArgs Class

Definition

public ref class ShowContextMenuCommandArgs sealed : Microsoft::VisualStudio::Text::Editor::Commanding::EditorCommandArgs
public sealed class ShowContextMenuCommandArgs : Microsoft.VisualStudio.Text.Editor.Commanding.EditorCommandArgs
type ShowContextMenuCommandArgs = class
    inherit EditorCommandArgs
Public NotInheritable Class ShowContextMenuCommandArgs
Inherits 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