Partager via


IVsCodeDefViewContext.GetCol Method

Retrieves the column position of an item based on its index in a list of context items.

Namespace:  Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop.8.0 (in Microsoft.VisualStudio.Shell.Interop.8.0.dll)

Syntax

'Declaration
Function GetCol ( _
    iItem As UInteger, _
    <OutAttribute> ByRef piCol As UInteger _
) As Integer
int GetCol(
    uint iItem,
    out uint piCol
)
int GetCol(
    [InAttribute] unsigned int iItem, 
    [OutAttribute] unsigned int% piCol
)
abstract GetCol : 
        iItem:uint32 * 
        piCol:uint32 byref -> int
function GetCol(
    iItem : uint, 
    piCol : uint
) : int

Parameters

  • iItem
    Type: UInt32

    [in] Index of the context item.

  • piCol
    Type: UInt32%

    [out] Column position of the item in the CodeDefinition tool window.

Return Value

Type: Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Remarks

COM Signature

From vsshell80.idl:

HRESULT IVsCodeDefViewContext::GetCol(
   ULONG iItem, 
   ULONG *piCol
);

.NET Framework Security

See Also

Reference

IVsCodeDefViewContext Interface

Microsoft.VisualStudio.Shell.Interop Namespace