Gets or sets a 16x16 1/96 inch icon for this RibbonButton. This icon is shown when the DisplayMode property is set to IconTextRelation.SmallIconLabeled or IconTextRelation.SmallIconUnlabeled.

Syntax

public System.Drawing.Image SmallIcon { get; set; }
Public Property SmallIcon() As System.Drawing.Image

Examples

This example shows how to set a RibbonButton´s SmallIcon property by loading an existing image.

TXTextControl.Windows.Forms.Ribbon.RibbonButton ribbonButton = new TXTextControl.Windows.Forms.Ribbon.RibbonButton();
System.Drawing.Image myImage = System.Drawing.Image.FromFile("16x16_SampleImage");
ribbonButton.DisplayMode = TXTextControl.Windows.Forms.Ribbon.IconTextRelation.SmallIconLabeled;
ribbonButton.SmallIcon = myImage;
Dim ribbonButton As TXTextControl.Windows.Forms.Ribbon.RibbonButton = New TXTextControl.Windows.Forms.Ribbon.RibbonButton()
Dim myImage As System.Drawing.Image = System.Drawing.Image.FromFile("16x16_SampleImage")
ribbonButton.DisplayMode = TXTextControl.Windows.Forms.Ribbon.IconTextRelation.SmallIconLabeled
ribbonButton.SmallIcon = myImage