5 writes to Focus
System.Windows.Forms (5)
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonBaseAdapter.LayoutOptions.cs (3)
272
layout.
Focus
= layout.Field;
276
layout.
Focus
= LayoutUtils.InflateRect(layout.Focus, Padding);
286
layout.
Focus
= ImageSize != Size.Empty
System\Windows\Forms\Controls\Buttons\ButtonInternal\CheckBoxBaseAdapter.cs (1)
336
layout.
Focus
= Control.AutoSize ? Rectangle.Inflate(layout.CheckBounds, -2, -2) : layout.Field;
System\Windows\Forms\Controls\Buttons\ButtonInternal\RadioButtonBaseAdapter.cs (1)
227
layout.
Focus
= Control.AutoSize ? layout.CheckBounds : layout.Field;
21 references to Focus
System.Windows.Forms (21)
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonBaseAdapter.cs (1)
533
Rectangle maxFocus = layout.
Focus
;
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonBaseAdapter.LayoutOptions.cs (8)
273
layout.
Focus
.Inflate(-1, -1);
276
layout.Focus = LayoutUtils.InflateRect(layout.
Focus
, Padding);
293
if (layout.
Focus
.Height % 2 == 0)
295
layout.
Focus
.Y++;
296
layout.
Focus
.Height--;
299
if (layout.
Focus
.Width % 2 == 0)
301
layout.
Focus
.X++;
302
layout.
Focus
.Width--;
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonFlatAdapter.cs (3)
79
DrawFlatFocus(e, layout.
Focus
, colors.Options.HighContrast ? colors.WindowText : colors.ContrastButtonShadow);
167
DrawFlatFocus(e, layout.
Focus
, colors.Options.HighContrast ? colors.WindowText : colors.ContrastButtonShadow);
261
DrawFlatFocus(e, layout.
Focus
, colors.ContrastButtonShadow);
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonStandardAdapter.cs (2)
162
layout.
Focus
.Inflate(1, 1);
173
ControlPaint.DrawHighContrastFocusRectangle(e.GraphicsInternal, layout.
Focus
, highlightTextColor);
System\Windows\Forms\Controls\Buttons\ButtonInternal\CheckBoxStandardAdapter.cs (5)
39
int focusRectFixup = layout.
Focus
.X & 0x1; // if it's odd, subtract one pixel for fixup.
45
layout.
Focus
.Offset(-(focusRectFixup + 1), -2);
46
layout.
Focus
.Width = layout.TextBounds.Width + layout.ImageBounds.Width - 1;
47
layout.
Focus
.Intersect(layout.TextBounds);
54
layout.
Focus
.Width += 2;
System\Windows\Forms\Controls\DataGridView\DataGridViewButtonCell.cs (2)
922
layout.
Focus
,
952
layout.
Focus
,