IVsFontAndColorDefaults::GetItemByName Method (String^, array<AllColorableItemInfo>^)
Visual Studio 2015
Returns an AllColorableItemInfo structure containing font and color information for one of the Display Items listed in the Fonts and Colors properties page.
Assembly: Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)
Parameters
- szItem
-
Type:
System::String^
[in] Null-terminated string containing the name of the item.
- pInfo
-
Type:
array<Microsoft.VisualStudio.Shell.Interop::AllColorableItemInfo>^
[out] An AllColorableItemInfo structure, which contains the default attributes of the named item.
Return Value
Type: System::Int32If the method succeeds, it returns S_OK. If it fails, it returns an error code.
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.
Show: