61 references to Control
System.Windows.Forms (61)
System\Windows\Forms\Controls\Buttons\ButtonInternal\CheckBoxBaseAdapter.cs (20)
62if (Control.CheckState == CheckState.Indeterminate) 126if (Control.CheckState == CheckState.Indeterminate) 132DrawCheckBackground(Control.Enabled, Control.CheckState, e, bounds, checkBackground, disabledColors); 139Control.Checked, 140Control.Enabled, 141Control.CheckState, 236if (Control.CheckState == CheckState.Unchecked) 245if (!Control.Enabled) 250if (Control.MouseIsDown) 262if (Control.CheckState == CheckState.Indeterminate) 269CheckBoxRenderer.ConvertFromButtonState(style, isMixed: true, Control.MouseIsOver), 270Control.HWNDInternal); 284CheckBoxRenderer.ConvertFromButtonState(style, isMixed: false, Control.MouseIsOver), 285Control.HWNDInternal); 330if (string.IsNullOrEmpty(Control.Text)) 336layout.Focus = Control.AutoSize ? Rectangle.Inflate(layout.CheckBounds, -2, -2) : layout.Field; 343layout.CheckAlign = Control.CheckAlign; 345layout.ShadowedText = !Control.Enabled; 346layout.LayoutRTL = Control.RightToLeft == RightToLeft.Yes;
System\Windows\Forms\Controls\Buttons\ButtonInternal\CheckBoxFlatAdapter.cs (11)
16if (Control.Appearance == Appearance.Button) 18ButtonAdapter.PaintDown(e, Control.CheckState); 23if (Control.Enabled) 35if (Control.Appearance == Appearance.Button) 37ButtonAdapter.PaintOver(e, Control.CheckState); 42if (Control.Enabled) 54if (Control.Appearance == Appearance.Button) 56ButtonAdapter.PaintUp(e, Control.CheckState); 61if (Control.Enabled) 74PaintButtonBackground(e, Control.ClientRectangle, background: null); 91protected override ButtonBaseAdapter CreateButtonAdapter() => new ButtonFlatAdapter(Control);
System\Windows\Forms\Controls\Buttons\ButtonInternal\CheckBoxPopupAdapter.cs (16)
17if (Control.Appearance == Appearance.Button) 19ButtonPopupAdapter adapter = new(Control); 20adapter.PaintUp(e, Control.CheckState); 27PaintButtonBackground(e, Control.ClientRectangle, background: null); 41(colors.Options.HighContrast && !Control.Enabled) ? colors.WindowFrame : colors.ButtonShadow); 52if (Control.Appearance == Appearance.Button) 54ButtonPopupAdapter adapter = new(Control); 55adapter.PaintOver(e, Control.CheckState); 62Control.PaintBackground(e, Control.ClientRectangle); 77if (!string.IsNullOrEmpty(Control.Text)) 95if (Control.Appearance == Appearance.Button) 97ButtonPopupAdapter adapter = new(Control); 98adapter.PaintDown(e, Control.CheckState); 105PaintButtonBackground(e, Control.ClientRectangle, background: null); 118protected override ButtonBaseAdapter CreateButtonAdapter() => new ButtonPopupAdapter(Control);
System\Windows\Forms\Controls\Buttons\ButtonInternal\CheckBoxStandardAdapter.cs (14)
17if (Control.Appearance == Appearance.Button) 19ButtonAdapter.PaintUp(e, Control.CheckState); 25PaintButtonBackground(e, Control.ClientRectangle, null); 36if (!string.IsNullOrEmpty(Control.Text)) 66if (Control.Appearance == Appearance.Button) 68ButtonAdapter.PaintDown(e, Control.CheckState); 78if (Control.Appearance == Appearance.Button) 80ButtonAdapter.PaintOver(e, Control.CheckState); 90if (Control.Appearance == Appearance.Button) 92ButtonStandardAdapter adapter = new(Control); 110protected override ButtonBaseAdapter CreateButtonAdapter() => new ButtonStandardAdapter(Control); 126Control.MouseIsOver), 127Control.HWNDInternal).Width; 132? Control.LogicalToDeviceUnits(layout.CheckSize)