IVsManagedImageService.AddCustomImage(ImageSource, Boolean) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.