ItemsSource Property
- Namespace
TXTextControl.Windows. Forms. Ribbon
- Package
TXTextControl.asTextControl. WinForms. SDK TXTextControl.from the private NuGet feed or Text Control Offline PackagesWindows. Forms. dll
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; }Public Property ItemsSource As RibbonListView.RibbonListViewItem()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();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.