Gets a System.Windows.Media.Imaging.BitmapSource of the small icon that is associated with an item and specified by the identifier parameter. Such an identifier can be the string conversion of an enum that is associated with an item (such as RibbonFormattingTab.RibbonItem.TXITEM_Paste). The size of the returned small icon depends on the resolution that is specified by the dpi parameter. The source of the small image is based on a grid of 16x16 Pixel and a resolution of 96 dpi.

GetSmallIcon(String, Double)

public static System.Windows.Media.Imaging.BitmapSource GetSmallIcon(string identifier, double dpi);
Public Shared Function GetSmallIcon(ByVal identifier As String, ByVal dpi As Double ) As System.Windows.Media.Imaging.BitmapSource

GetSmallIcon(String, Double, WPF.ResourceProvider.ImageSourceSettings)

public static System.Windows.Media.Imaging.BitmapSource GetSmallIcon(string identifier, double dpi, WPF.ResourceProvider.ImageSourceSettings settings);
Public Shared Function GetSmallIcon(ByVal identifier As String, ByVal dpi As Double , ByVal settings As WPF.ResourceProvider.ImageSourceSettings) As System.Windows.Media.Imaging.BitmapSource

Parameters

Parameter Description
identifier The identifier of the item that is associated with the requested small icon.
dpi Specifies the resolution that is used to create the requested small icon.
settings Specifies an ImageSourceSettings object with additional settings for receiving the small image.

Return Value

A bitmap of the small icon that is assigned to the item. If no small icon is associated with the item, the method returns null.