TX Text Control .NET for Windows Forms

SelectedIndices 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 indexes of the selected items in this RibbonListView.

Syntax

public int[] SelectedIndices { get; set; }

Examples

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

ribbonListView.SelectedIndices = new int[] { 10 };
ribbonListView.Update();