237 references to ControlPaint
System.Windows.Forms (201)
System\Windows\Forms\ComponentModel\COM2Interop\COM2FontConverter.cs (1)
54_lastFont = ControlPaint.FontInPoints(font);
System\Windows\Forms\Control.cs (3)
981if (ControlPaint.IsImageTransparent(BackgroundImage)) 8172bool imageIsTransparent = ControlPaint.IsImageTransparent(BackgroundImage); 8189ControlPaint.DrawBackgroundImage(
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonBaseAdapter.ColorOptions.cs (6)
50colors.ButtonShadow = ControlPaint.Dark(_backColor); 51colors.ButtonShadowDark = ControlPaint.DarkDark(_backColor); 52colors.Highlight = ControlPaint.LightLight(_backColor); 56colors.ButtonShadow = ControlPaint.Dark(_backColor); 57colors.ButtonShadowDark = ControlPaint.LightLight(_backColor); 58colors.Highlight = ControlPaint.LightLight(_backColor);
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonBaseAdapter.cs (7)
91=> ControlPaint.CreateStringFormat(Control, Control.TextAlign, Control.ShowToolTip, Control.UseMnemonic); 97=> ControlPaint.CreateTextFormatFlags(Control, Control.TextAlign, Control.ShowToolTip, Control.UseMnemonic); 115ControlPaint.DrawBorderSimple(deviceContext, bounds, ControlPaint.Dark(Control.BackColor)); 372ControlPaint.DrawFocusRectangle(g, r, Control.ForeColor, Control.BackColor); 409ControlPaint.DrawImageDisabled(graphics, image, imageBounds, unscaledImage: true); 554ControlPaint.DrawBackgroundImage(
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonFlatAdapter.cs (10)
96ControlPaint.DrawBorderSimple(e, r, colors.WindowFrame); 101ControlPaint.DrawBorderSimple(e, r, colors.WindowFrame); 102ControlPaint.DrawBorderSimple(e, r, colors.ButtonShadow); 110ControlPaint.DrawBorderSimple(e, r, colors.WindowFrame); 184ControlPaint.DrawBorderSimple(e, r, colors.WindowFrame); 189ControlPaint.DrawBorderSimple(e, r, colors.WindowFrame); 190ControlPaint.DrawBorderSimple(e, r, colors.ButtonShadow); 198ControlPaint.DrawBorderSimple(e, r, colors.WindowFrame); 273ControlPaint.DrawBorderSimple(e, r, colors.WindowFrame); 278ControlPaint.DrawBorderSimple(e, r, colors.WindowFrame);
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonPopupAdapter.cs (2)
51ControlPaint.DrawBorderSimple(e, r, borderColor); 136ControlPaint.DrawBorderSimple(e, r, colors.Options.HighContrast ? colors.WindowText : GetContrastingBorderColor(colors.ButtonShadow));
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonStandardAdapter.cs (3)
94ControlPaint.DrawBackgroundImage( 173ControlPaint.DrawHighContrastFocusRectangle(e.GraphicsInternal, layout.Focus, highlightTextColor); 202ControlPaint.DrawBorderSimple(e, r, colors.ButtonShadow);
System\Windows\Forms\Controls\Buttons\ButtonInternal\CheckBoxBaseAdapter.cs (3)
198ControlPaint.DrawImageColorized(g, checkImage, fullSize, checkColor); 274ControlPaint.DrawMixedCheckBox(e.GraphicsInternal, layout.CheckBounds, style); 289ControlPaint.DrawCheckBox(e.GraphicsInternal, layout.CheckBounds, style);
System\Windows\Forms\Controls\Buttons\ButtonInternal\CheckBoxPopupAdapter.cs (1)
38ControlPaint.DrawBorderSimple(
System\Windows\Forms\Controls\Buttons\ButtonInternal\DarkMode\FlatButtonDarkModeRenderer.cs (1)
47ControlPaint.DrawFocusRectangle(
System\Windows\Forms\Controls\Buttons\ButtonInternal\DarkMode\SystemButtonDarkModeRenderer.cs (4)
156? ControlPaint.Light(backColor, 0.2f) 157: ControlPaint.Dark(backColor, 0.1f); 161? ControlPaint.Light(backColor, 0.4f) 162: ControlPaint.Dark(backColor, 0.2f);
System\Windows\Forms\Controls\Buttons\ButtonInternal\RadioButtonBaseAdapter.cs (2)
68border = ControlPaint.ContrastControlDark; 215ControlPaint.DrawRadioButton(e.GraphicsInternal, check, style);
System\Windows\Forms\Controls\Buttons\ButtonRenderer.cs (9)
81ControlPaint.DrawButton(graphics, bounds, ConvertToButtonState(state)); 108ControlPaint.DrawButton(graphics, bounds, ConvertToButtonState(state)); 119ControlPaint.DrawFocusRectangle(graphics, contentBounds); 157ControlPaint.DrawButton(g, bounds, ConvertToButtonState(state)); 166ControlPaint.DrawFocusRectangle(g, contentBounds); 186ControlPaint.DrawButton(g, bounds, ConvertToButtonState(state)); 193ControlPaint.DrawFocusRectangle(g, contentBounds); 265ControlPaint.DrawButton(graphics, bounds, ConvertToButtonState(state)); 277ControlPaint.DrawFocusRectangle(graphics, contentBounds);
System\Windows\Forms\Controls\Buttons\CheckBoxRenderer.cs (8)
61ControlPaint.DrawMixedCheckBox(g, glyphBounds, ConvertToButtonState(state)); 65ControlPaint.DrawCheckBox(g, glyphBounds, ConvertToButtonState(state)); 137ControlPaint.DrawMixedCheckBox(g, glyphBounds, ConvertToButtonState(state)); 141ControlPaint.DrawCheckBox(g, glyphBounds, ConvertToButtonState(state)); 151ControlPaint.DrawFocusRectangle(g, textBounds); 209ControlPaint.DrawMixedCheckBox(g, glyphBounds, ConvertToButtonState(state)); 213ControlPaint.DrawCheckBox(g, glyphBounds, ConvertToButtonState(state)); 223ControlPaint.DrawFocusRectangle(g, textBounds);
System\Windows\Forms\Controls\Buttons\RadioButtonRenderer.cs (5)
83ControlPaint.DrawRadioButton(graphics, glyphBounds, ConvertToButtonState(state)); 143ControlPaint.DrawRadioButton(g, glyphBounds, ConvertToButtonState(state)); 151ControlPaint.DrawFocusRectangle(g, textBounds); 236ControlPaint.DrawRadioButton(g, glyphBounds, ConvertToButtonState(state)); 244ControlPaint.DrawFocusRectangle(g, textBounds);
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (6)
5674ControlPaint.FillReversibleRectangle(RectangleToScreen(rectInsertionBar), Color.White); 5704HBRUSH halftone = ControlPaint.CreateHalftoneHBRUSH(); 5723HBRUSH halftone = ControlPaint.CreateHalftoneHBRUSH(); 16709ControlPaint.DrawHighContrastFocusRectangle(g, GetGridFocusRectangle(), SystemColors.ActiveCaptionText); 16713ControlPaint.DrawFocusRectangle(g, GetGridFocusRectangle()); 19318ControlPaint.DrawBorder3D(g, bounds, Border3DStyle.Sunken);
System\Windows\Forms\Controls\DataGridView\DataGridViewButtonCell.cs (5)
746ControlPaint.DrawBorder( 812ControlPaint.DrawBorder( 848ControlPaint.DrawBorderSimple( 887ControlPaint.DrawFocusRectangle(g, Rectangle.Inflate(valBounds, -1, -1), Color.Empty, cellStyle.ForeColor); 947ControlPaint.DrawFocusRectangle(
System\Windows\Forms\Controls\DataGridView\DataGridViewCell.cs (4)
1431? ControlPaint.DarkDark(baseline) 1435? ControlPaint.LightLight(baseline) 1441? ControlPaint.Dark(baseline) 1445? ControlPaint.Light(baseline)
System\Windows\Forms\Controls\DataGridView\DataGridViewCheckBoxCell.cs (7)
1151ControlPaint.DrawFocusRectangle(g, valBounds, cellStyle.BackColor, cellStyle.ForeColor); 1259ControlPaint.DrawMixedCheckBox( 1269ControlPaint.DrawCheckBox( 1299highlight = ControlPaint.LightLight(backBrushColor); 1373ControlPaint.DrawImageColorized( 1378? ControlPaint.LightLight(foreBrushColor) 1523ControlPaint.DrawBorderSimple(g, layout.CheckBounds, colors.ButtonShadow);
System\Windows\Forms\Controls\DataGridView\DataGridViewColumnHeaderCell.DataGridViewColumnHeaderCellRenderer.cs (1)
43ControlPaint.EnforceHeaderCellDividerContrast(g, bounds);
System\Windows\Forms\Controls\DataGridView\DataGridViewComboBoxCell.cs (3)
2263ControlPaint.DrawFocusRectangle(g, focusBounds, Color.Empty, cellStyle.ForeColor); 2274ControlPaint.DrawFocusRectangle(g, focusBounds, Color.Empty, cellStyle.ForeColor); 2279ControlPaint.DrawFocusRectangle(g, textBounds, Color.Empty, cellStyle.ForeColor);
System\Windows\Forms\Controls\DataGridView\DataGridViewImageCell.cs (1)
897ControlPaint.DrawFocusRectangle(g, valBounds, Color.Empty, brushColor);
System\Windows\Forms\Controls\DataGridView\DataGridViewLinkCell.cs (3)
1000ControlPaint.DrawFocusRectangle(g, focusBounds, Color.Empty, brushColor); 1053ControlPaint.DrawFocusRectangle(g, errorBounds, Color.Empty, brushColor); 1068ControlPaint.DrawFocusRectangle(g, valBounds, Color.Empty, brushColor);
System\Windows\Forms\Controls\DataGridView\DataGridViewRow.cs (1)
1201ControlPaint.DrawFocusRectangle(graphics, bounds, Color.Empty, backColor);
System\Windows\Forms\Controls\DataGridView\DataGridViewRowHeaderCell.cs (2)
1046ControlPaint.IsDark(backColor)) 1048using Bitmap invertedBitmap = ControlPaint.CreateBitmapWithInvertedForeColor(bmp, backColor);
System\Windows\Forms\Controls\DataGridView\DataGridViewRowHeaderCell.DataGridViewRowHeaderCellRenderer.cs (1)
30ControlPaint.EnforceHeaderCellDividerContrast(g, bounds);
System\Windows\Forms\Controls\DataGridView\DataGridViewTextBoxCell.cs (1)
713ControlPaint.DrawFocusRectangle(graphics, valBounds, Color.Empty, cellStyle.ForeColor);
System\Windows\Forms\Controls\GroupBox\GroupBox.cs (4)
493ControlPaint.DrawStringDisabled(graphics, Text, Font, backColor, textRectangle, format); 522ControlPaint.DrawStringDisabled( 591using CreatePenScope hpenLight = new(ControlPaint.Light(backColor, 1.0f)); 593using CreatePenScope hpenDark = new(ControlPaint.Dark(backColor, 0f));
System\Windows\Forms\Controls\GroupBox\GroupBoxRenderer.cs (2)
249using var light = ControlPaint.Light(backColor, 1.0f).GetCachedPenScope(); 250using var dark = ControlPaint.Dark(backColor, 0f).GetCachedPenScope();
System\Windows\Forms\Controls\ImageList\ImageList.cs (2)
374HBITMAP hMask = (HBITMAP)ControlPaint.CreateHBitmapTransparencyMask(bitmap); 377HBITMAP hBitmap = (HBITMAP)ControlPaint.CreateHBitmapColorMask(bitmap, (IntPtr)hMask);
System\Windows\Forms\Controls\ImageList\ImageList.ImageCollection.cs (2)
158HBITMAP hMask = (HBITMAP)ControlPaint.CreateHBitmapTransparencyMask(bitmap); 159HBITMAP hBitmap = (HBITMAP)ControlPaint.CreateHBitmapColorMask(bitmap, hMask);
System\Windows\Forms\Controls\Labels\Label.cs (5)
909=> ControlPaint.CreateStringFormat(this, TextAlign, AutoEllipsis, UseMnemonic); 924TextFormatFlags flags = ControlPaint.CreateTextFormatFlags(this, TextAlign, AutoEllipsis, UseMnemonic); 989ControlPaint.DrawImageDisabled(g, image, loc.X, loc.Y, BackColor); 1288ControlPaint.DrawStringDisabled(e.GraphicsInternal, Text, Font, color, face, stringFormat); 1355ControlPaint.PrintBorder(g, new Rectangle(Point.Empty, Size), BorderStyle, Border3DStyle.SunkenOuter);
System\Windows\Forms\Controls\Labels\LinkLabel.cs (5)
138s_iedisabledLinkColor = ControlPaint.Dark(DisabledColor); 1123ControlPaint.DrawStringDisabled(g, Text, Font, DisabledColor, ClientRectWithPadding, stringFormat); 1135ControlPaint.DrawStringDisabled( 1324ControlPaint.DrawFocusRectangle(g, Rectangle.Ceiling(focusRectangle), ForeColor, BackColor); 1330ControlPaint.DrawFocusRectangle(g, Rectangle.Ceiling(rect), ForeColor, BackColor);
System\Windows\Forms\Controls\ListBoxes\CheckedListBox.cs (3)
565ControlPaint.DrawCheckBox(e.Graphics, box, state); 712ControlPaint.DrawBlackWhiteFocusRectangle(e.Graphics, textBounds, backColor); 736ControlPaint.DrawFocusRectangle(e.Graphics, emptyRectangle, foreColor, backColor);
System\Windows\Forms\Controls\ListView\DrawListViewItemEventArgs.cs (1)
77ControlPaint.DrawFocusRectangle(Graphics, UpdateBounds(Bounds, drawText: false), Item.ForeColor, Item.BackColor);
System\Windows\Forms\Controls\ListView\DrawListViewSubItemEventArgs.cs (1)
113ControlPaint.DrawFocusRectangle(Graphics, Rectangle.Inflate(bounds, -1, -1), Item.ForeColor, Item.BackColor);
System\Windows\Forms\Controls\PropertyGrid\PropertyGrid.cs (2)
1966ControlPaint.DrawReversibleLine(new Point(rc.X + i, rc.Y), new Point(rc.X + i, rc.Y + rc.Height), targetControl.BackColor); 1973ControlPaint.DrawReversibleLine(new Point(rc.X, rc.Y + i), new Point(rc.X + rc.Width, rc.Y + i), targetControl.BackColor);
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\CategoryGridEntry.cs (2)
125ControlPaint.DrawFocusRectangle(g, focusRect, SystemColors.ControlText, OwnerGrid.LineColor); 129ControlPaint.DrawFocusRectangle(g, focusRect);
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\DropDownButton.cs (1)
7using static System.Windows.Forms.ControlPaint;
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\DropDownButton.DropDownButtonAdapter.cs (13)
22Color c = ControlPaint.LightLight(Control.BackColor); 23ControlPaint.DrawBorder( 32ControlPaint.DrawBorderSimple(e, r, ControlPaint.Dark(Control.BackColor)); 39Color c = ControlPaint.Light(Control.BackColor); 40ControlPaint.DrawBorder( 51c = ControlPaint.LightLight(Control.BackColor); 52ControlPaint.DrawBorder( 61ControlPaint.DrawBorderSimple(e, r, ControlPaint.Dark(Control.BackColor)); 79ControlPaint.DrawBorder( 92if (ControlPaint.IsDark(backgroundColor) && image is Bitmap bitmap) 94using Image invertedImage = ControlPaint.CreateBitmapWithInvertedForeColor(bitmap, Control.BackColor);
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\GridEntry.cs (1)
1714ControlPaint.InvertForeColorIfNeeded(bitmap, backgroundColor);
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.cs (1)
14using static System.Windows.Forms.ControlPaint;
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.DropDownHolder.cs (1)
240ControlPaint.DrawSizeGrip(glyphGraphics, BackColor, 0, 0, s_resizeGripSize, s_resizeGripSize);
System\Windows\Forms\Controls\PropertyGrid\PropertyGridToolStripButton.cs (1)
36ControlPaint.DrawBorder(graphics, bounds,
System\Windows\Forms\Controls\Splitter\Splitter.cs (1)
698HBRUSH halftone = ControlPaint.CreateHalftoneHBRUSH();
System\Windows\Forms\Controls\TabControl\TabPage.cs (1)
632ControlPaint.DrawBackgroundImage(
System\Windows\Forms\Controls\TabControl\TabRenderer.cs (4)
47ControlPaint.DrawFocusRectangle(g, contentBounds); 84ControlPaint.DrawFocusRectangle(g, contentBounds); 104ControlPaint.DrawFocusRectangle(g, contentBounds); 135ControlPaint.DrawFocusRectangle(g, contentBounds);
System\Windows\Forms\Controls\ToolStrips\ToolStripItem.ToolStripItemInternalLayout.cs (1)
92textFormat |= ControlPaint.ConvertAlignmentToTextFormat(alignment);
System\Windows\Forms\Controls\ToolStrips\ToolStripManager.cs (2)
74retFont = ControlPaint.FontInPoints(sysFont); 110s_defaultFont = ControlPaint.FontInPoints(sysFont);
System\Windows\Forms\Controls\ToolStrips\ToolStripMenuItem.cs (1)
711ControlPaint.DrawCaptionButton(g, new Rectangle(Point.Empty, image.Size), (CaptionButton)buttonToUse, ButtonState.Flat);
System\Windows\Forms\Controls\ToolStrips\ToolstripProfessionalRenderer.cs (7)
270ControlPaint.DrawBackgroundImage(g, item.BackgroundImage, item.BackColor, item.BackgroundImageLayout, bounds, fillRect); 321ControlPaint.DrawBorder3D(e.Graphics, new Rectangle(0, 0, item.Width, item.Height), item.BorderStyle, (Border3DSide)item.BorderSides); 358ControlPaint.DrawBackgroundImage(g, item.BackgroundImage, item.BackColor, item.BackgroundImageLayout, bounds, fillRect); 595ControlPaint.DrawBackgroundImage( 652ControlPaint.DrawBackgroundImage(g, item.BackgroundImage, item.BackColor, item.BackgroundImageLayout, bounds, fillRect); 1113ControlPaint.DrawBackgroundImage(g, item.BackgroundImage, item.BackColor, item.BackgroundImageLayout, bounds, fillRect); 1573ControlPaint.DrawBackgroundImage(g, item.BackgroundImage, item.BackColor, item.BackgroundImageLayout, bounds, fillRect);
System\Windows\Forms\Controls\ToolStrips\ToolStripRenderer.cs (4)
95s_disabledImageColorMatrix = ControlPaint.MultiplyColorMatrix(transparency, greyscale); 118s_disabledImageColorMatrix = ControlPaint.MultiplyColorMatrix(transparency, greyscale); 870if (ControlPaint.IsDark(backgroundColor)) 872Image invertedImage = ControlPaint.CreateBitmapWithInvertedForeColor(bitmap, e.Item.BackColor);
System\Windows\Forms\Controls\ToolStrips\ToolStripSystemDarkModeRenderer.cs (2)
62_ when color.GetBrightness() > 0.5 => ControlPaint.Dark(color, 0.2f), 248ControlPaint.DrawBackgroundImage(
System\Windows\Forms\Controls\ToolStrips\ToolStripSystemRenderer.cs (10)
307ControlPaint.DrawBorder3D(e.Graphics, bounds, Border3DStyle.Raised); 481ControlPaint.DrawBackgroundImage(g, item.BackgroundImage, item.BackColor, item.BackgroundImageLayout, item.ContentRectangle, item.ContentRectangle); 526ControlPaint.DrawBackgroundImage(g, item.BackgroundImage, item.BackColor, item.BackgroundImageLayout, item.ContentRectangle, fillRect); 552ControlPaint.DrawBorder3D(e.Graphics, new Rectangle(0, 0, item.Width - 1, item.Height - 1), item.BorderStyle, (Border3DSide)item.BorderSides); 625ControlPaint.DrawBackgroundImage(g, splitButton.BackgroundImage, splitButton.BackColor, splitButton.BackgroundImageLayout, fillRect, fillRect); 643ControlPaint.DrawBorderSimple(g, clientBounds, SystemColors.Highlight); 661ControlPaint.DrawBackgroundImage(g, splitButton.BackgroundImage, splitButton.BackColor, splitButton.BackgroundImageLayout, bounds, fillRect); 722ControlPaint.DrawBorderSimple(g, bounds, SystemColors.Highlight); 734ControlPaint.DrawBackgroundImage(g, item.BackgroundImage, item.BackColor, item.BackgroundImageLayout, fillRect, fillRect); 856ControlPaint.DrawBackgroundImage(g, item.BackgroundImage, item.BackColor, item.BackgroundImageLayout, fillRect, fillRect);
System\Windows\Forms\Controls\TreeView\TreeView.cs (1)
2834ControlPaint.DrawFocusRectangle(g, bounds, color, SystemColors.Highlight);
System\Windows\Forms\Controls\UpDown\UpDownBase.cs (1)
583ControlPaint.DrawBorderSimple(e, editBounds, SystemColors.Control);
System\Windows\Forms\Controls\UpDown\UpDownBase.UpDownButtons.cs (1)
7using static System.Windows.Forms.ControlPaint;
System\Windows\Forms\Dialogs\CommonDialogs\FontDialog.cs (1)
470_font = ControlPaint.FontInPoints(fontInWorldUnits);
System\Windows\Forms\ErrorProvider\ErrorProvider.IconRegion.cs (1)
44using HBITMAP mask = (HBITMAP)ControlPaint.CreateHBitmapTransparencyMask(bitmap);
System\Windows\Forms\Form.cs (1)
4455ControlPaint.DrawSizeGrip(
System\Windows\Forms\Layout\Containers\SplitContainer.cs (2)
1464ControlPaint.DrawFocusRectangle(g, r, ForeColor, BackColor); 1475HBRUSH halftone = ControlPaint.CreateHalftoneHBRUSH();
System\Windows\Forms\Panels\Panel.cs (1)
230ControlPaint.PrintBorder(g, new Rectangle(Point.Empty, Size), BorderStyle, Border3DStyle.Sunken);
System\Windows\Forms\Panels\TableLayoutPanel\TableLayoutPanel.cs (4)
408ControlPaint.PaintTableCellBorder(cellBorderStyle, g, outsideCellBounds); 473ControlPaint.PaintTableCellBorder(cellBorderStyle, g, tableBounds); 476ControlPaint.PaintTableControlBorder(cellBorderStyle, g, displayRect); 480ControlPaint.PaintTableControlBorder(cellBorderStyle, g, displayRect);
System\Windows\Forms\Printing\PrintPreviewControl.cs (2)
726ControlPaint.DrawHighContrastFocusRectangle(e.Graphics, focusRect, SystemColors.ControlText); 730ControlPaint.DrawFocusRectangle(e.Graphics, focusRect);
System\Windows\Forms\Rendering\DrawItemEventArgs.cs (1)
137ControlPaint.DrawFocusRectangle(GraphicsInternal, Bounds, ForeColor, BackColor);
System\Windows\Forms\Rendering\TextRenderer.cs (2)
558return ControlPaint.IsDarker(backColor, SystemColors.Control) 559? ControlPaint.Dark(backColor)
System\Windows\Forms\Scrolling\ScrollableControl.cs (2)
662if (ControlPaint.IsImageTransparent(BackgroundImage)) 667ControlPaint.DrawBackgroundImage(
System\Windows\Forms\ToolTip\DrawToolTipEventArgs.cs (1)
101ControlPaint.DrawBorder(Graphics, Bounds, SystemColors.WindowFrame, ButtonBorderStyle.Solid);
System.Windows.Forms.Design (36)
System\ComponentModel\Design\CollectionEditor.CollectionEditorCollectionForm.cs (2)
588ControlPaint.DrawButton(g, button, ButtonState.Normal); 605ControlPaint.DrawFocusRectangle(g, res);
System\ComponentModel\Design\DesignerActionPanel.EditorPropertyLine.EditorButton.cs (1)
155ControlPaint.DrawFocusRectangle(g, new Rectangle(2, 2, Width - 5, Height - 5));
System\Drawing\Design\ColorEditor.ColorPalette.cs (3)
383ControlPaint.DrawBorder( 394ControlPaint.DrawFocusRectangle( 401ControlPaint.DrawBorder(
System\Windows\Forms\Design\AnchorEditor.AnchorUI.cs (4)
192ControlPaint.DrawBorder3D(e.Graphics, rc, Border3DStyle.Sunken); 208ControlPaint.DrawButton(e.Graphics, rc, ButtonState.Normal); 282ControlPaint.DrawFocusRectangle(e.Graphics, rc); 288ControlPaint.DrawFocusRectangle(e.Graphics, rc);
System\Windows\Forms\Design\ComponentTray.cs (1)
1195ControlPaint.DrawReversibleFrame(_mouseDragWorkspace, BackColor, FrameStyle.Dashed);
System\Windows\Forms\Design\DataGridViewColumnCollectionDialog.cs (1)
1015ControlPaint.DrawFocusRectangle(e.Graphics, focusRectangle, e.ForeColor, e.BackColor);
System\Windows\Forms\Design\DockEditor.DockUI.cs (1)
302ControlPaint.DrawButton(e.Graphics, rc, ButtonState.Pushed);
System\Windows\Forms\Design\GroupBoxDesigner.cs (1)
82ControlPaint.DrawGrid(pe.Graphics, rectangle, GridSize, control.BackColor);
System\Windows\Forms\Design\PanelDesigner.cs (2)
73ControlPaint.Light(Control.BackColor) : 74ControlPaint.Dark(Control.BackColor);
System\Windows\Forms\Design\ParentControlDesigner.cs (1)
2037ControlPaint.DrawGrid(pe.Graphics, paintRect, GridSize, control.BackColor);
System\Windows\Forms\Design\PictureBoxDesigner.cs (2)
40penColor = ControlPaint.Light(ctl.BackColor); 44penColor = ControlPaint.Dark(ctl.BackColor);
System\Windows\Forms\Design\SelectionUIService.ContainerSelectionUIItem.cs (1)
60ControlPaint.DrawContainerGrabHandle(graphics, glyphBounds);
System\Windows\Forms\Design\SelectionUIService.SelectionUIItem.cs (10)
147ControlPaint.DrawSelectionFrame(graphics, false, outer, inner, borderColor); 152ControlPaint.DrawGrabHandle(graphics, rect, fActive, (_sizes[0] != 0)); 155ControlPaint.DrawGrabHandle(graphics, rect, fActive, _sizes[2] != 0); 158ControlPaint.DrawGrabHandle(graphics, rect, fActive, _sizes[7] != 0); 161ControlPaint.DrawGrabHandle(graphics, rect, fActive, _sizes[5] != 0); 164ControlPaint.DrawGrabHandle(graphics, rect, fActive, _sizes[6] != 0); 167ControlPaint.DrawGrabHandle(graphics, rect, fActive, _sizes[1] != 0); 171ControlPaint.DrawGrabHandle(graphics, rect, fActive, _sizes[3] != 0); 174ControlPaint.DrawGrabHandle(graphics, rect, fActive, _sizes[4] != 0); 178ControlPaint.DrawLockedFrame(graphics, outer, fActive);
System\Windows\Forms\Design\SplitterPanelDesigner.cs (2)
149Color penColor = control.BackColor.GetBrightness() < .5 ? ControlPaint.Light(control.BackColor) : ControlPaint.Dark(control.BackColor);
System\Windows\Forms\Design\TabOrder.cs (1)
220ControlPaint.DrawSelectionFrame(graphics, active: false, ctlOuter, ctlInner, backColor);
System\Windows\Forms\Design\ToolStripCollectionEditor.ToolStripItemEditorForm.cs (1)
788ControlPaint.DrawFocusRectangle(e.Graphics, fillBounds, e.ForeColor, e.BackColor);
System\Windows\Forms\Design\ToolStripPanelDesigner.cs (2)
47ControlPaint.Light(Control.BackColor) : 48ControlPaint.Dark(Control.BackColor);