GrapeCity.Win.Containers 名前空間 : CheckedItemChangedEventArgs クラス |
Public Class CheckedItemChangedEventArgs Inherits System.EventArgs
public class CheckedItemChangedEventArgs : System.EventArgs
// Update the items for listBox1 when item checked changed in gcRadioGroupBox1, private void gcRadioGroupBox1_CheckedItemChanged(object sender, CheckedItemChangedEventArgs e) { if (e.CurrentCheckedItem != null) { // Use special styles for checked items. e.CurrentCheckedItem.ForeColor = Color.Red; e.CurrentCheckedItem.Font = new Font(e.CurrentCheckedItem.Font, FontStyle.Bold); } if (e.OriginalCheckedItem != null) { // Reset these properties will cause the properties to retreive their values from gcRadioGroupBox1. e.OriginalCheckedItem.ForeColor = Color.Empty; e.OriginalCheckedItem.Font = null; } // Update the items displayed in listBox1. this.DisplayAllItems(); }
' Update the items for listBox1 when item checked changed in gcRadioGroupBox1, Private Sub gcRadioGroupBox1_CheckedItemChanged(ByVal sender As Object, ByVal e As CheckedItemChangedEventArgs) If e.CurrentCheckedItem IsNot Nothing Then ' Use special styles for checked items. e.CurrentCheckedItem.ForeColor = Color.Red e.CurrentCheckedItem.Font = New Font(e.CurrentCheckedItem.Font, FontStyle.Bold) End If If e.OriginalCheckedItem IsNot Nothing Then ' Reset these properties will cause the properties to retreive their values from gcRadioGroupBox1. e.OriginalCheckedItem.ForeColor = Color.Empty e.OriginalCheckedItem.Font = Nothing End If ' Update the items displayed in listBox1. Me.DisplayAllItems() End Sub
System.Object
System.EventArgs
GrapeCity.Win.Containers.CheckedItemChangedEventArgs
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2