共用方式為


IVsImageService2 Interface

Definition

Registers well-known images (such as icons) for Visual Studio.

public interface class IVsImageService2 : Microsoft::VisualStudio::Shell::Interop::IVsImageService
public interface class IVsImageService2 : Microsoft::VisualStudio::Shell::Interop::IVsImageService
__interface IVsImageService2 : Microsoft::VisualStudio::Shell::Interop::IVsImageService
public interface IVsImageService2 : Microsoft.VisualStudio.Shell.Interop.IVsImageService
[System.Runtime.InteropServices.Guid("676CE47B-7375-4D53-B0BC-EF9322A2AE62")]
[System.Runtime.InteropServices.InterfaceType(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)]
public interface IVsImageService2 : Microsoft.VisualStudio.Shell.Interop.IVsImageService
type IVsImageService2 = interface
    interface IVsImageService
[<System.Runtime.InteropServices.Guid("676CE47B-7375-4D53-B0BC-EF9322A2AE62")>]
[<System.Runtime.InteropServices.InterfaceType(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)>]
type IVsImageService2 = interface
    interface IVsImageService
Public Interface IVsImageService2
Implements IVsImageService
Attributes
Implements

Methods

Add(String, IVsUIObject)
Obsolete.

Adds the specified icon with the specified name to the service.

AddCustomCompositeImage(Int32, Int32, Int32, ImageCompositionLayer[])

Creates a new custom ImageMoniker composed of multiple images rendered together

AddCustomImage(IVsUIObject)

Adds a custom image.

AddCustomImageList(IVsImageMonikerImageList)

Adds a custom image list.

CreateMonikerImageListFromHIMAGELIST(IntPtr)

Creates an instance of an IVsImageMonikerImageList that wraps a native HIMAGELIST

Get(String)
Obsolete.

Gets the image by the specified name.

GetIconForFile(String, __VSUIDATAFORMAT)
Obsolete.

Gets the icon for the specified file.

GetIconForFileEx(String, __VSUIDATAFORMAT, UInt32)
GetImage(ImageMoniker, ImageAttributes)

Gets the image with the specified moniker and attributes.

GetImageListImageMonikers(ImageMoniker)

Returns the image monikers in an image list.

GetImageMonikerForFile(String)

Gets the image moniker for the specified file.

GetImageMonikerForHierarchyItem(IVsHierarchy, UInt32, Int32)

Gets the image moniker for the specified hierarchy item.

GetImageMonikerForName(String)

Returns the moniker for a named image from IVsImageService.Add().

GetImageMonikerType(ImageMoniker)

Determines whether an image is custom (registered at runtime), loaded from the manifest, or unknown (in which case the ImageMoniker is invalid or stale)

RemoveCustomImage(IImageHandle)

Removes the specified custom image.

RemoveCustomImageList(IImageHandle)

Removes the specified image list.

ThemeDIBits(Int32, Byte[], Int32, Int32, Boolean, UInt32)

Applies theming to BGRA32 device-independent bitmap bits. The luminosity of the image is transformed so that the constant "halo" luminosity blends in with the background. This has the effect of eliminating the halo visually. The "halo" luminosity is an immutable constant, and is not calculated from the input image. Images which contain cyan (#00FFFF) in their top-right pixel are not inverted. Instead, the top-right pixel is cleared (RGBA are all set to 0) and S_OK is returned without otherwise modifying the image.This method is a replacement for IVsUIShell5.ThemeDIBits.

TryAssociateNameWithMoniker(String, ImageMoniker)

Creates an association between an image name (from IVsImageService.Add and IVsImageService.Get) and an ImageMoniker (from IVsImageService.GetImage).

TryParseImageMoniker(String, ImageMoniker)

Parses a moniker string. The moniker can be of the form "{guid};id" or the name of a well-known moniker (e.g. "KnownMonikers.FolderClosed")

Applies to