다음을 통해 공유


IVsFontAndColorDefaults.GetItemByName Method

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)

Syntax

'Declaration
Function GetItemByName ( _
    szItem As String, _
    <OutAttribute> pInfo As AllColorableItemInfo() _
) As Integer
int GetItemByName(
    string szItem,
    AllColorableItemInfo[] pInfo
)
int GetItemByName(
    [InAttribute] String^ szItem, 
    [OutAttribute] array<AllColorableItemInfo>^ pInfo
)
abstract GetItemByName : 
        szItem:string * 
        pInfo:AllColorableItemInfo[] byref -> int
function GetItemByName(
    szItem : String, 
    pInfo : AllColorableItemInfo[]
) : int

Parameters

  • szItem
    Type: String

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

Return Value

Type: 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::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.

.NET Framework Security

See Also

Reference

IVsFontAndColorDefaults Interface

Microsoft.VisualStudio.Shell.Interop Namespace