Udostępnij za pośrednictwem


IVsManagedImageService.AddCustomImage(ImageSource, Boolean) Method

Definition

Adds a custom ImageSource to the image service.

public:
 Microsoft::VisualStudio::Imaging::Interop::IImageHandle ^ AddCustomImage(System::Windows::Media::ImageSource ^ image, bool canTheme);
public Microsoft.VisualStudio.Imaging.Interop.IImageHandle AddCustomImage (System.Windows.Media.ImageSource image, bool canTheme);
abstract member AddCustomImage : System.Windows.Media.ImageSource * bool -> Microsoft.VisualStudio.Imaging.Interop.IImageHandle
Public Function AddCustomImage (image As ImageSource, canTheme As Boolean) As IImageHandle

Parameters

image
ImageSource

The image to add.

canTheme
Boolean

True if the image can be themed, otherwise false.

Returns

A handle which tracks the lifetime of the ImageSource in the cache, and provides access to the moniker associated with the image.

Applies to