GrapeCity.Win.Containers 名前空間 : CheckBoxItemEventArgs クラス |
Public Class CheckBoxItemEventArgs Inherits System.EventArgs
public class CheckBoxItemEventArgs : System.EventArgs
// Update the items for listBox1 when item checked changed in gcCheckedGroupBox1, private void gcCheckedGroupBox1_ItemCheckedChanged(object sender, GrapeCity.Win.Containers.CheckBoxItemEventArgs e) { if (e.CheckBoxItem.Checked) { // Set special styles for checked items. e.CheckBoxItem.ForeColor = Color.Red; e.CheckBoxItem.Font = new Font(e.CheckBoxItem.Font, FontStyle.Bold); } else { // Reset these properties will cause the properties to retrieve their values from gcCheckedGroupBox1. e.CheckBoxItem.ForeColor = Color.Empty; e.CheckBoxItem.Font = null; } // Update the items displayed in listBox1. this.DisplayItems(); }
' Update the items for listBox1 when item checked changed in gcCheckedGroupBox1, Private Sub gcCheckedGroupBox1_ItemCheckedChanged(ByVal sender As Object, ByVal e As CheckBoxItemEventArgs) If e.CheckBoxItem.Checked Then ' Set special styles for checked items. e.CheckBoxItem.ForeColor = Color.Red e.CheckBoxItem.Font = New Font(e.CheckBoxItem.Font, FontStyle.Bold) Else ' Reset these properties will cause the properties to retrieve their values from gcCheckedGroupBox1. e.CheckBoxItem.ForeColor = Color.Empty e.CheckBoxItem.Font = Nothing End If ' Update the items displayed in listBox1. Me.DisplayItems() End Sub
System.Object
System.EventArgs
GrapeCity.Win.Containers.CheckBoxItemEventArgs
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