IVsSwatchClient.GetSelection Method
Returns initial/current selection; or the value (-1, -1) if no selection.
Namespace: Microsoft.VisualStudio.Shell.Interop
Assembly: Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)
Syntax
'Declaration
Function GetSelection ( _
<OutAttribute> ByRef pxCur As Integer, _
<OutAttribute> ByRef pyCur As Integer _
) As Integer
'Usage
Dim instance As IVsSwatchClient
Dim pxCur As Integer
Dim pyCur As Integer
Dim returnValue As Integer
returnValue = instance.GetSelection(pxCur, _
pyCur)
int GetSelection(
out int pxCur,
out int pyCur
)
int GetSelection(
[InAttribute] [OutAttribute] int% pxCur,
[InAttribute] [OutAttribute] int% pyCur
)
function GetSelection(
pxCur : int,
pyCur : int
) : int
Parameters
pxCur
Type: System.Int32%[In, Out] A pointer to an integer value.
pyCur
Type: System.Int32%[In, Out] A pointer to an integer value.
Return Value
Type: System.Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.
Remarks
COM Signature
From vsshell.idl:
HRESULT IVsSwatchClient::GetSelection(
[in, out] int *pxCur,
[in, out] int *pyCur
);
.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.