TX Text Control .NET for Windows Forms

ItemsSource 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 array of RibbonListViewItems used to generate the content of this RibbonListView. The default value is null.

Syntax

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

Examples

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

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

Remarks

If this property is set to a value that is not null, all RibbonListViewItemCollection methods which can be used to change the RibbonListView's items collection are disabled.