'宣言 Public Property CheckState As CheckState
public CheckState CheckState {get; set;}
Imports Infragistics.Win Imports Infragistics.Win.UltraWinListView Private Sub ultraListView1_ItemCheckStateChanged(ByVal sender As Object, ByVal e As Infragistics.Win.UltraWinListView.ItemCheckStateChangedEventArgs) Handles ultraListView1.ItemCheckStateChanged ' Disable the hot tracking effects for unchecked items If e.Item.CheckState = CheckState.Unchecked Then e.Item.HotTracking = DefaultableBoolean.False Else e.Item.HotTracking = DefaultableBoolean.True End If End Sub
using Infragistics.Win; using Infragistics.Win.UltraWinListView; using System.Diagnostics; private void ultraListView1_ItemCheckStateChanged(object sender, Infragistics.Win.UltraWinListView.ItemCheckStateChangedEventArgs e) { // Disable the hot tracking effects for unchecked items if ( e.Item.CheckState == CheckState.Unchecked ) e.Item.HotTracking = DefaultableBoolean.False; else e.Item.HotTracking = DefaultableBoolean.True; }