バージョン 25.1 (最新)

Item(Object) プロパティ

DataValue が指定された dataValue と等しい ValueListItem を返します。一致する項目の値がない場合、null を返します。
シンタックス
public ValueListItem Item( 
   object dataValue
) {get;}

パラメータ

dataValue
返される ValueListItemDataValue。指定された dataValue を持つ項目が存在しない場合、null。
解説

このインデクサーはその 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
 
参照