1 write to idealCheckSize
System.Windows.Forms (1)
winforms\Managed\System\WinForms\CheckedListBox.cs (1)
682idealCheckSize = (int)(CheckBoxRenderer.GetGlyphSize(e.Graphics, cbState, HandleInternal)).Width;
12 references to idealCheckSize
System.Windows.Forms (12)
winforms\Managed\System\WinForms\CheckedListBox.cs (12)
287return base.MaxItemWidth + idealCheckSize + scaledListItemPaddingBuffer; 687int centeringFactor = Math.Max((height - idealCheckSize) / 2, 0); 690if (centeringFactor + idealCheckSize > bounds.Height) { 691centeringFactor = bounds.Height - idealCheckSize; 696idealCheckSize, 697idealCheckSize); 703box.X = bounds.X + bounds.Width - idealCheckSize - scaledListItemStartPosition; 721bounds.X + idealCheckSize + (scaledListItemStartPosition * 2), 723bounds.Width - (idealCheckSize + (scaledListItemStartPosition * 2)), 778float tabOffset = -(idealCheckSize + (scaledListItemStartPosition * 2)); 941if (e.ItemHeight < idealCheckSize + 2) { 942e.ItemHeight = idealCheckSize + 2;