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