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