TX Text Control .NET for Windows Forms

LargeIcon 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 an icon for this RibbonGroup. This icon is displayed by the RibbonGroup's menu button which appears when the RibbonGroup shrinks to a width where its items cannot be displayed anymore. If the size of the icon is smaller than 32x32 1/96 inch, the image is drawn centered on the menu button.

Syntax

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

Examples

The following example uses RibbonGroup.LargeIcon to configure large icon as part of the ribbon group workflow. The change is then applied to the active document or user interface.

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