53 references to CheckBoxState
System.Windows.Forms (53)
winforms\Managed\System\WinForms\CheckBoxRenderer.cs (44)
64public static bool IsBackgroundPartiallyTransparent(CheckBoxState state) { 99public static void DrawCheckBox(Graphics g, Point glyphLocation, CheckBoxState state) { 103internal static void DrawCheckBox(Graphics g, Point glyphLocation, CheckBoxState state, IntPtr hWnd) { 128public static void DrawCheckBox(Graphics g, Point glyphLocation, Rectangle textBounds, string checkBoxText, Font font, bool focused, CheckBoxState state) { 140public static void DrawCheckBox(Graphics g, Point glyphLocation, Rectangle textBounds, string checkBoxText, Font font, TextFormatFlags flags, bool focused, CheckBoxState state) { 144internal static void DrawCheckBox(Graphics g, Point glyphLocation, Rectangle textBounds, string checkBoxText, Font font, TextFormatFlags flags, bool focused, CheckBoxState state, IntPtr hWnd) { 178public static void DrawCheckBox(Graphics g, Point glyphLocation, Rectangle textBounds, string checkBoxText, Font font, Image image, Rectangle imageBounds, bool focused, CheckBoxState state) { 190public static void DrawCheckBox(Graphics g, Point glyphLocation, Rectangle textBounds, string checkBoxText, Font font, TextFormatFlags flags, Image image, Rectangle imageBounds, bool focused, CheckBoxState state) { 230public static Size GetGlyphSize(Graphics g, CheckBoxState state) { 234internal static Size GetGlyphSize(Graphics g, CheckBoxState state, IntPtr hWnd) { 244internal static ButtonState ConvertToButtonState(CheckBoxState state) { 247case CheckBoxState.CheckedNormal: 248case CheckBoxState.CheckedHot: 250case CheckBoxState.CheckedPressed: 252case CheckBoxState.CheckedDisabled: 255case CheckBoxState.UncheckedPressed: 257case CheckBoxState.UncheckedDisabled: 261case CheckBoxState.MixedNormal: 262case CheckBoxState.MixedHot: 264case CheckBoxState.MixedPressed: 266case CheckBoxState.MixedDisabled: 274internal static CheckBoxState ConvertFromButtonState(ButtonState state, bool isMixed, bool isHot) { 277return CheckBoxState.MixedPressed; 280return CheckBoxState.MixedDisabled; 283return CheckBoxState.MixedHot; 286return CheckBoxState.MixedNormal; 290return CheckBoxState.CheckedPressed; 293return CheckBoxState.CheckedDisabled; 296return CheckBoxState.CheckedHot; 299return CheckBoxState.CheckedNormal; 303return CheckBoxState.UncheckedPressed; 306return CheckBoxState.UncheckedDisabled; 309return CheckBoxState.UncheckedHot; 312return CheckBoxState.UncheckedNormal; 316private static bool IsMixed(CheckBoxState state) { 319case CheckBoxState.MixedNormal: 320case CheckBoxState.MixedHot: 321case CheckBoxState.MixedPressed: 322case CheckBoxState.MixedDisabled: 330private static bool IsDisabled(CheckBoxState state) { 332case CheckBoxState.CheckedDisabled: 333case CheckBoxState.UncheckedDisabled: 334case CheckBoxState.MixedDisabled: 346&& IsDisabled((CheckBoxState)state)
winforms\Managed\System\WinForms\CheckedListBox.cs (2)
681VisualStyles.CheckBoxState cbState = CheckBoxRenderer.ConvertFromButtonState(state, false, ((e.State & DrawItemState.HotLight) == DrawItemState.HotLight)); 711VisualStyles.CheckBoxState cbState = CheckBoxRenderer.ConvertFromButtonState(state, false, ((e.State & DrawItemState.HotLight) == DrawItemState.HotLight));
winforms\Managed\System\WinForms\DataGridViewCheckBoxCell.cs (7)
768Size checkBoxSize = CheckBoxRenderer.GetGlyphSize(graphics, CheckBoxState.UncheckedNormal); 809checkBoxSize = CheckBoxRenderer.GetGlyphSize(graphics, CheckBoxState.UncheckedNormal).Width - 3; 812checkBoxSize = CheckBoxRenderer.GetGlyphSize(graphics, CheckBoxState.UncheckedNormal).Width - 2; 1255CheckBoxState themeCheckBoxState = CheckBoxState.UncheckedNormal; 1284checkBoxSize = CheckBoxRenderer.GetGlyphSize(g, CheckBoxState.UncheckedNormal); 1289checkBoxSize = CheckBoxRenderer.GetGlyphSize(g, CheckBoxState.UncheckedNormal);