60 references to Control
System.Windows.Forms (60)
winforms\Managed\System\WinForms\ButtonInternal\CheckBoxBaseAdapter.cs (20)
65
if (
Control
.CheckState == CheckState.Indeterminate) {
118
if (
Control
.CheckState == CheckState.Indeterminate) {
122
DrawCheckBackground(
Control
.Enabled,
Control
.CheckState, e.Graphics, bounds, checkColor, checkBackground, disabledColors, colors);
127
DrawCheckOnly(flatCheckSize,
Control
.Checked,
Control
.Enabled,
Control
.CheckState, e.Graphics, layout, colors, checkColor, checkBackground);
197
if (
Control
.CheckState == CheckState.Unchecked) {
204
if (!
Control
.Enabled) {
208
if (
Control
.MouseIsDown) {
220
if (
Control
.CheckState == CheckState.Indeterminate) {
222
CheckBoxRenderer.DrawCheckBox(g, new Point(layout.checkBounds.Left, layout.checkBounds.Top), CheckBoxRenderer.ConvertFromButtonState(style, true,
Control
.MouseIsOver),
Control
.HandleInternal);
230
CheckBoxRenderer.DrawCheckBox(g, new Point(layout.checkBounds.Left, layout.checkBounds.Top), CheckBoxRenderer.ConvertFromButtonState(style, false,
Control
.MouseIsOver),
Control
.HandleInternal);
278
if (AccessibilityImprovements.Level2 && String.IsNullOrEmpty(
Control
.Text)) {
283
layout.focus =
Control
.AutoSize ? Rectangle.Inflate(layout.checkBounds, -2, -2) : layout.field;
289
layout.checkAlign =
Control
.CheckAlign;
291
layout.shadowedText = !
Control
.Enabled;
292
layout.layoutRTL = RightToLeft.Yes ==
Control
.RightToLeft;
winforms\Managed\System\WinForms\ButtonInternal\CheckBoxFlatAdapter.cs (11)
21
if (
Control
.Appearance == Appearance.Button) {
22
ButtonAdapter.PaintDown(e,
Control
.CheckState);
27
if (
Control
.Enabled) {
36
if (
Control
.Appearance == Appearance.Button) {
37
ButtonAdapter.PaintOver(e,
Control
.CheckState);
42
if (
Control
.Enabled) {
51
if (
Control
.Appearance == Appearance.Button) {
52
ButtonAdapter.PaintUp(e,
Control
.CheckState);
57
if (
Control
.Enabled) {
68
PaintButtonBackground(e,
Control
.ClientRectangle, null);
85
return new ButtonFlatAdapter(
Control
);
winforms\Managed\System\WinForms\ButtonInternal\CheckBoxPopupAdapter.cs (15)
24
if (
Control
.Appearance == Appearance.Button) {
25
ButtonPopupAdapter adapter = new ButtonPopupAdapter(
Control
);
26
adapter.PaintUp(e,
Control
.CheckState);
34
PaintButtonBackground(e,
Control
.ClientRectangle, null);
40
(colors.options.highContrast && !
Control
.Enabled && AccessibilityImprovements.Level1) ? colors.windowFrame : colors.buttonShadow);
50
if (
Control
.Appearance == Appearance.Button) {
51
ButtonPopupAdapter adapter = new ButtonPopupAdapter(
Control
);
52
adapter.PaintOver(e,
Control
.CheckState);
59
PaintButtonBackground(e,
Control
.ClientRectangle, null);
67
if (!AccessibilityImprovements.Level2 || !String.IsNullOrEmpty(
Control
.Text)) {
78
if (
Control
.Appearance == Appearance.Button) {
79
ButtonPopupAdapter adapter = new ButtonPopupAdapter(
Control
);
80
adapter.PaintDown(e,
Control
.CheckState);
88
PaintButtonBackground(e,
Control
.ClientRectangle, null);
104
return new ButtonPopupAdapter(
Control
);
winforms\Managed\System\WinForms\ButtonInternal\CheckBoxStandardAdapter.cs (14)
23
if (
Control
.Appearance == Appearance.Button) {
24
ButtonAdapter.PaintUp(e,
Control
.CheckState);
29
PaintButtonBackground(e,
Control
.ClientRectangle, null);
38
if (!AccessibilityImprovements.Level2 || !String.IsNullOrEmpty(
Control
.Text)) {
61
if (
Control
.Appearance == Appearance.Button) {
62
ButtonAdapter.PaintDown(e,
Control
.CheckState);
70
if (
Control
.Appearance == Appearance.Button) {
71
ButtonAdapter.PaintOver(e,
Control
.CheckState);
79
if (
Control
.Appearance == Appearance.Button) {
80
ButtonStandardAdapter adapter = new ButtonStandardAdapter(
Control
);
103
return new ButtonStandardAdapter(
Control
);
114
layout.checkSize = CheckBoxRenderer.GetGlyphSize(g, CheckBoxRenderer.ConvertFromButtonState(GetState(), true,
Control
.MouseIsOver),
Control
.HandleInternal).Width;
120
layout.checkSize =
Control
.LogicalToDeviceUnits(layout.checkSize);