TX Text Control .NET for Windows Forms

SelectedItems 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 the items that are selected in this RibbonListView.

Syntax

public RibbonListView.RibbonListViewItem[] SelectedItems { get; set; }

Examples

The following example uses RibbonListView.SelectedItems to configure selected items as part of the ribbon list view workflow. The change is then applied to the active document or user interface.

ribbonListView.SelectedItems = new TXTextControl.Windows.Forms.Ribbon.RibbonListView.RibbonListViewItem[] { new TXTextControl.Windows.Forms.Ribbon.RibbonListView.RibbonListViewItem() };
ribbonListView.Update();