IVsMenuEditor.SelectionChange Method
Called whenever the selection changes. If pIMI is NULL, no menu item is selected. If it is non nulla null reference (Nothing in Visual Basic), it points to the item to be selected. Only one item can be selected at a time from outside MenuDesigner. This method does not set focus to the item; see the SetFocus method below for that behavior.
Namespace: Microsoft.VisualStudio.Shell.Interop
Assembly: Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)
Syntax
'Declaración
Function SelectionChange ( _
pIMI As IntPtr _
) As Integer
'Uso
Dim instance As IVsMenuEditor
Dim pIMI As IntPtr
Dim returnValue As Integer
returnValue = instance.SelectionChange(pIMI)
int SelectionChange(
IntPtr pIMI
)
int SelectionChange(
[InAttribute] IntPtr pIMI
)
abstract SelectionChange :
pIMI:IntPtr -> int
function SelectionChange(
pIMI : IntPtr
) : int
Parameters
- pIMI
Type: System.IntPtr
[in]
Return Value
Type: System.Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.
Remarks
C++
From vsshell.idl:
HRESULT IVsMenuEditor::SelectionChange([in]IVsMenuItem *pIMI);
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.