다음을 통해 공유


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

‘선언
Function GetSelection ( _
    <OutAttribute> ByRef pxCur As Integer, _
    <OutAttribute> ByRef pyCur As Integer _
) As Integer
‘사용 방법
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
)
abstract GetSelection : 
        pxCur:int byref * 
        pyCur:int byref -> int 
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

See Also

Reference

IVsSwatchClient Interface

IVsSwatchClient Members

Microsoft.VisualStudio.Shell.Interop Namespace