public ValueListItem Item( object dataValue ) {get;}
'宣言 Public Overloads ReadOnly Property Item( _ ByVal dataValue As Object _ ) As ValueListItem
このインデクサーはその DataValue によって項目にアクセスする方法を提供します。標準インデクサーも公開されます。「インデックス」パラメーターは、このコレクション内の項目の序数位置を示します。使用可能なインデックスがすでにある場合に、オーバー読み込みを使用します。
Imports Infragistics.Win Imports Infragistics.Win.UltraWinEditors Imports System.Diagnostics Public Function IsItemChecked(ByVal comboEditor As UltraComboEditor, ByVal dataValue As Object) As Boolean Dim checkedItems As CheckedValueListItemsCollection = comboEditor.CheckedItems ' Iterate the CheckedItems collection and compare the value ' of each item therein to the specified value. Dim item As ValueListItem For Each item In checkedItems If Object.Equals(dataValue, item.DataValue) Then Return True Next Return False End Function
'宣言 Public Overloads ReadOnly Property Item( _ ByVal dataValue As Object _ ) As ValueListItem
using Infragistics.Win; using Infragistics.Win.UltraWinEditors; using System.Diagnostics; public bool IsItemChecked( UltraComboEditor comboEditor, object dataValue ) { CheckedValueListItemsCollection checkedItems = comboEditor.CheckedItems; // Iterate the CheckedItems collection and compare the value // of each item therein to the specified value. foreach( ValueListItem item in checkedItems ) { if ( object.Equals(dataValue, item.DataValue) ) return true; } return false; }
'宣言 Public Overloads ReadOnly Property Item( _ ByVal dataValue As Object _ ) As ValueListItem