IVsManagedImageService::AddCustomImage Method (ImageSource^, Boolean)

Visual Studio 2015
 

Adds a custom ImageSource to the image service.

Namespace:   Microsoft.VisualStudio.Shell
Assembly:  Microsoft.VisualStudio.Shell.Immutable.14.0 (in Microsoft.VisualStudio.Shell.Immutable.14.0.dll)

IImageHandle^ AddCustomImage(
	ImageSource^ image,
	bool canTheme
)

Parameters

image
Type: System.Windows.Media::ImageSource^

The image to add.

canTheme
Type: System::Boolean

True if the image can be themed, otherwise false.

Return Value

Type: Microsoft.VisualStudio.Imaging.Interop::IImageHandle^

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

Return to top
Show: