Freigeben über


IVsFontAndColorDefaults.GetItem Method

Returns an AllColorableItemInfo structure containing font and color information for specific member of the Display Items list for a given Category as indicated by the iItem parameter.

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

Syntax

'Declaration
Function GetItem ( _
    iItem As Integer, _
    <OutAttribute> pInfo As AllColorableItemInfo() _
) As Integer
'Usage
Dim instance As IVsFontAndColorDefaults
Dim iItem As Integer
Dim pInfo As AllColorableItemInfo()
Dim returnValue As Integer

returnValue = instance.GetItem(iItem, _
    pInfo)
int GetItem(
    int iItem,
    AllColorableItemInfo[] pInfo
)
int GetItem(
    [InAttribute] int iItem, 
    [OutAttribute] array<AllColorableItemInfo>^ pInfo
)
abstract GetItem : 
        iItem:int * 
        pInfo:AllColorableItemInfo[] byref -> int 
function GetItem(
    iItem : int, 
    pInfo : AllColorableItemInfo[]
) : int

Parameters

  • iItem
    Type: System.Int32
    [in] Integer containing the item index.

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 IVsFontAndColorDefaults::GetItem(
   [in] LONG iItem,
   [out] AllColorableItemInfo *pInfo
);

.NET Framework Security

See Also

Reference

IVsFontAndColorDefaults Interface

IVsFontAndColorDefaults Members

Microsoft.VisualStudio.Shell.Interop Namespace