IVsFontAndColorDefaults::GetItemByName Method (String^, array<AllColorableItemInfo>^)

 

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

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

int GetItemByName(
	String^ szItem,
	array<AllColorableItemInfo>^ pInfo
)

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::Int32

If 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.

Return to top
Show: