'Declaration Public Overloads Function GetPresetImage( _ ByVal key As System.String, _ ByVal size As System.Integer, _ ByVal isDarkTheme As System.Boolean _ ) As System.Drawing.Image
public System.Drawing.Image GetPresetImage( System.string key, System.int size, System.bool isDarkTheme )
Parameters
- key
- The icon key.
- size
- The icon size
- isDarkTheme
- Determines whether the icons are dark or not.
Return Value
The bitmap image from build-in C1Ribbon preset. If image with specified key is not found, returns null. If image with specified size is not found, returns the most appropriate image resized to the specified size.