TX Text Control .NET for Windows Forms

IsEditable Property

Property|Introduced in 27.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 value indicating whether this RibbonListViewItem is editable. If the property is set to true, the RibbonListViewItem can be edited by a text box that appears on double clicking the item, pressing the F2 key or using the RibbonListView.ActivateEditItemTextBox method. The default value is false.

Syntax

public bool IsEditable { get; set; }

Examples

The following example uses RibbonListViewItem.IsEditable to configure is editable as part of the ribbon list view item workflow. The configured value is checked before the workflow continues.

ribbonListViewItem.IsEditable = true;
if (ribbonListViewItem.IsEditable)
{
    Console.WriteLine("Ribbon List View Item: Is Editable is enabled.");
}

Limitations

A RibbonListViewItem can only be editable, if the corresponding RibbonListView.ViewMode property is set to ListViewMode.Text or ListViewMode.Icon | ListViewMode.Text.