GetPresetImage(String,Int32) Method
Returns a bitmap image from build-in
C1Ribbon presets for the current theme lightness.
'Declaration
Public Overloads Function GetPresetImage( _
ByVal As System.String, _
ByVal As System.Integer _
) As System.Drawing.Image
public System.Drawing.Image GetPresetImage(
System.string ,
System.int
)
Parameters
- key
- The icon key.
- size
- The icon size
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.