Sdílet prostřednictvím


IVsFontAndColorDefaults.GetItem(Int32, AllColorableItemInfo[]) Method

Definition

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.

public:
 int GetItem(int iItem, cli::array <Microsoft::VisualStudio::Shell::Interop::AllColorableItemInfo> ^ pInfo);
int GetItem(int iItem, std::Array <Microsoft::VisualStudio::Shell::Interop::AllColorableItemInfo> const & pInfo);
public int GetItem (int iItem, Microsoft.VisualStudio.Shell.Interop.AllColorableItemInfo[] pInfo);
abstract member GetItem : int * Microsoft.VisualStudio.Shell.Interop.AllColorableItemInfo[] -> int
Public Function GetItem (iItem As Integer, pInfo As AllColorableItemInfo()) As Integer

Parameters

iItem
Int32

[in] Integer containing the item index.

pInfo
AllColorableItemInfo[]

[out] Reference to an AllColorableItemInfo structure, which contains the defaults attributes of the indexed Display Item.

Returns

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  
);  

Applies to