Share via


IVsFontAndColorDefaults.GetItemByName(String, AllColorableItemInfo[]) Method

Definition

Returns an AllColorableItemInfo structure containing font and color information for one of the Display Items listed in the Fonts and Colors properties page.

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

Parameters

szItem
String

[in] Null-terminated string containing the name of the item.

pInfo
AllColorableItemInfo[]

[out] An AllColorableItemInfo structure, which contains the default attributes of the named 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::GetItemByName(  
   [in] LPCOLESTR szItem,  
   [out] AllColorableItemInfo *pInfo  
);  

Do not localize the item name. The szItem parameter is the non-localized invariant name for an item contained in the bstrName field of the AllColorableItemInfo structure.

Applies to