TX Text Control .NET for Windows Forms

SmallIcon Property

Property|Introduced in 24.0
Namespace
TXTextControl.Windows.Forms.Ribbon
Package
TXTextControl.TextControl.WinForms.SDK as TXTextControl.Windows.Forms.dll from the private NuGet feed or Text Control Offline Packages

Description

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

Syntax

public System.Drawing.Image SmallIcon { get; set; }

Examples

The following example uses RibbonTextBox.SmallIcon to configure small icon as part of the ribbon text box workflow. The change is then applied to the active document or user interface.

ribbonTextBox.SmallIcon = System.Drawing.Image.FromFile(@"Images\icon.png");
ribbonTextBox.Update();