System.Windows.Forms.CheckedListBox.OnDrawItem C# (CSharp) Method

OnDrawItem() protected method

protected OnDrawItem ( DrawItemEventArgs e ) : void
e DrawItemEventArgs
return void
		protected override void OnDrawItem (DrawItemEventArgs e)
		{
			if (check_states.Contains (Items [e.Index])) {
				DrawItemState state = e.State | DrawItemState.Checked;
				if (((CheckState) check_states [Items [e.Index]]) == CheckState.Indeterminate)
					state |= DrawItemState.Inactive;
				e = new DrawItemEventArgs (e.Graphics, e.Font, e.Bounds, e.Index, state, e.ForeColor, e.BackColor);
			}
			//ThemeEngine.Current.DrawCheckedListBoxItem (this, e);
		}