Back to Devexpress

RepositoryItemCheckedComboBoxEdit.GetItems() Method

windowsforms-devexpress-dot-xtraeditors-dot-repository-dot-repositoryitemcheckedcomboboxedit-5f397ff3.md

latest3.1 KB
Original Source

RepositoryItemCheckedComboBoxEdit.GetItems() Method

Returns items from the RepositoryItemCheckedComboBoxEdit.Items collection. In bound mode, this method populates the item collection before returning it.

Namespace : DevExpress.XtraEditors.Repository

Assembly : DevExpress.XtraEditors.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
public CheckedListBoxItemCollection GetItems()
vb
Public Function GetItems As CheckedListBoxItemCollection

Returns

TypeDescription
CheckedListBoxItemCollection

A CheckedListBoxItemCollection object that contains items.

|

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the GetItems() method.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

winforms-checked-combobox-show-tooltips-for-selected-items/CS/WindowsApplication3/Form1.cs#L68

csharp
{
    CheckedListBoxItemCollection collection = edit.Properties.GetItems();
    for(int i = 0; i < collection.Count; i++)

winforms-checked-combobox-show-tooltips-for-selected-items/VB/WindowsApplication3/Form1.vb#L62

vb
Private Function GetItemIndex(ByVal edit As CheckedComboBoxEdit, ByVal description As String) As Integer
    Dim collection As CheckedListBoxItemCollection = edit.Properties.GetItems()
    For i As Integer = 0 To collection.Count - 1

See Also

Items

RepositoryItemCheckedComboBoxEdit Class

RepositoryItemCheckedComboBoxEdit Members

DevExpress.XtraEditors.Repository Namespace