TX Text Control .NET for Windows Forms

Checked 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 set a value indicating whether this RibbonToggleButton is checked.

Syntax

public bool Checked { get; set; }

Examples

The following example uses RibbonToggleButton.Checked to configure checked as part of the ribbon toggle button workflow. The change is then applied to the active document or user interface.

ribbonToggleButton.Checked = true;
ribbonToggleButton.Update();

Remarks

A check mark icon is displayed if the SmallIcon property is set to null, the DisplayMode property value is IconTextRelation.SmallIconLabeled and the Checked property value is set to true.