73 references to GetCachedPenScope
System.Windows.Forms (71)
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonBaseAdapter.cs (1)
439
using var pen = color.
GetCachedPenScope
();
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonPopupAdapter.cs (3)
89
using var windowFrame = colors.WindowFrame.
GetCachedPenScope
();
90
using var highlight = colors.Highlight.
GetCachedPenScope
();
91
using var buttonShadow = colors.ButtonShadow.
GetCachedPenScope
();
System\Windows\Forms\Controls\Buttons\ButtonInternal\RadioButtonBaseAdapter.cs (3)
41
using var dark = colors.ButtonShadow.
GetCachedPenScope
();
42
using var light = colors.ButtonFace.
GetCachedPenScope
();
43
using var lightLight = colors.Highlight.
GetCachedPenScope
();
System\Windows\Forms\Controls\ComboBox\ComboBox.FlatComboAdapter.cs (3)
91
using var outerBorderPen = outerBorderColor.
GetCachedPenScope
();
107
using var innerBorderPen = innerBorderColor.
GetCachedPenScope
();
117
using var borderPen = borderPenColor.
GetCachedPenScope
();
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (2)
19316
using var pen = VisualStyleInformation.TextControlBorder.
GetCachedPenScope
();
19326
using var pen = SystemColors.ControlText.
GetCachedPenScope
();
System\Windows\Forms\Controls\DataGridView\DataGridViewCell.cs (4)
3139
using var penBackColor = cellStyle.BackColor.
GetCachedPenScope
();
3140
using var penGridColor = DataGridView.GridPenColor.
GetCachedPenScope
();
3143
using var penControlDark = darkColor.
GetCachedPenScope
();
3144
using var penControlLightLight = lightColor.
GetCachedPenScope
();
System\Windows\Forms\Controls\DataGridView\DataGridViewCheckBoxCell.cs (1)
1320
using var pen = foreBrushColor.
GetCachedPenScope
();
System\Windows\Forms\Controls\DataGridView\DataGridViewColumnHeaderCell.cs (2)
1005
using var penControlDark = darkColor.
GetCachedPenScope
();
1006
using var penControlLightLight = lightColor.
GetCachedPenScope
();
System\Windows\Forms\Controls\DataGridView\DataGridViewTopLeftHeaderCell.cs (3)
377
using var penControlDark = darkColor.
GetCachedPenScope
();
383
using var penControlLightLight = lightColor.
GetCachedPenScope
();
389
using var penControlDark = darkColor.
GetCachedPenScope
();
System\Windows\Forms\Controls\GroupBox\GroupBox.cs (1)
561
using var boxPen = boxColor.
GetCachedPenScope
();
System\Windows\Forms\Controls\GroupBox\GroupBoxRenderer.cs (2)
249
using var light = ControlPaint.Light(backColor, 1.0f).
GetCachedPenScope
();
250
using var dark = ControlPaint.Dark(backColor, 0f).
GetCachedPenScope
();
System\Windows\Forms\Controls\ListBoxes\ListBox.cs (1)
2328
using var pen = VisualStyleInformation.TextControlBorder.
GetCachedPenScope
();
System\Windows\Forms\Controls\ListView\ListView.cs (1)
6974
using var pen = VisualStyleInformation.TextControlBorder.
GetCachedPenScope
();
System\Windows\Forms\Controls\PropertyGrid\PropertyGrid.SnappableControl.cs (1)
44
using var borderPen = BorderColor.
GetCachedPenScope
();
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\CategoryGridEntry.cs (2)
136
using var topLinePen = OwnerGrid.CategorySplitterColor.
GetCachedPenScope
();
153
using var topLinePen = OwnerGrid.CategorySplitterColor.
GetCachedPenScope
();
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\GridEntry.cs (2)
1546
using var linePen = ownerGrid.LineColor.
GetCachedPenScope
();
1749
using var pen = penColor.
GetCachedPenScope
();
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.cs (2)
3320
using var linePen = g.FindNearestColor(OwnerGrid.LineColor).
GetCachedPenScope
();
3372
using var borderPen = OwnerGrid.ViewBorderColor.
GetCachedPenScope
();
System\Windows\Forms\Controls\TextBox\MaskedTextBox.cs (1)
2891
using var pen = VisualStyleInformation.TextControlBorder.
GetCachedPenScope
();
System\Windows\Forms\Controls\TextBox\TextBox.cs (1)
827
using var pen = VisualStyleInformation.TextControlBorder.
GetCachedPenScope
();
System\Windows\Forms\Controls\ToolStrips\ToolstripProfessionalRenderer.cs (13)
373
using var pen = ColorTable.ButtonSelectedBorder.
GetCachedPenScope
();
387
using var pen = ColorTable.ButtonSelectedBorder.
GetCachedPenScope
();
420
using (var pen = ColorTable.ToolStripBorder.
GetCachedPenScope
())
587
using var pen = borderColor.
GetCachedPenScope
();
644
using var pen = borderColor.
GetCachedPenScope
();
662
using var pen = ColorTable.MenuItemBorder.
GetCachedPenScope
();
1061
using var pen = ColorTable.ButtonSelectedBorder.
GetCachedPenScope
();
1095
using var pen = ColorTable.MenuBorder.
GetCachedPenScope
();
1197
using (var pen = ColorTable.MenuBorder.
GetCachedPenScope
())
1269
using var pen = overflowBottomLeftShadow.
GetCachedPenScope
();
1495
using var foreColorPen = ColorTable.SeparatorDark.
GetCachedPenScope
();
1496
using var highlightColorPen = ColorTable.SeparatorLight.
GetCachedPenScope
();
1595
using var pen = ColorTable.ButtonSelectedBorder.
GetCachedPenScope
();
System\Windows\Forms\Controls\ToolStrips\ToolStripSystemDarkModeRenderer.cs (7)
83
GetDarkModeColor(color).
GetCachedPenScope
();
377
using var leftPen = GetDarkModeColor(SystemColors.ControlDark).
GetCachedPenScope
();
382
using var rightPen = GetDarkModeColor(SystemColors.ButtonShadow).
GetCachedPenScope
();
387
using var leftPen = GetDarkModeColor(SystemColors.ButtonShadow).
GetCachedPenScope
();
392
using var rightPen = GetDarkModeColor(SystemColors.ControlDark).
GetCachedPenScope
();
406
using var foreColorPen = GetDarkModeColor(SystemColors.ControlDark).
GetCachedPenScope
();
411
using var darkModePen = GetDarkModeColor(SystemColors.ButtonShadow).
GetCachedPenScope
();
System\Windows\Forms\Controls\ToolStrips\ToolStripSystemRenderer.cs (2)
521
using var pen = borderColor.
GetCachedPenScope
();
765
using var foreColorPen = item.ForeColor.
GetCachedPenScope
();
System\Windows\Forms\Controls\ToolStrips\ToolStripTextBox.ToolStripTextBoxControl.cs (1)
264
using var pen = outerBorderColor.
GetCachedPenScope
();
System\Windows\Forms\Controls\TreeView\TreeView.cs (1)
3152
using var pen = VisualStyleInformation.TextControlBorder.
GetCachedPenScope
();
System\Windows\Forms\Rendering\ControlPaint.cs (11)
1062
using var darkPen = hls.Darker(1.0f).
GetCachedPenScope
();
1067
using var lightPen = hls.Lighter(1.0f).
GetCachedPenScope
();
1076
using var mediumPen = hls.Lighter(0.5f).
GetCachedPenScope
();
1101
using var lightPen = (stockColor ? SystemColors.ControlLightLight : hls.Lighter(1.0f)).
GetCachedPenScope
();
1106
using var darkPen = (stockColor ? SystemColors.ControlDarkDark : hls.Darker(1.0f)).
GetCachedPenScope
();
1120
: SystemColors.Control).
GetCachedPenScope
();
1126
using var bottomRightPen = (stockColor ? SystemColors.ControlDark : hls.Darker(0.5f)).
GetCachedPenScope
();
1155
using var pen = color.
GetCachedPenScope
();
1893
using var bright = GdiPlusCache.
GetCachedPenScope
(LightLight(backColor));
1894
using var dark = GdiPlusCache.
GetCachedPenScope
(Dark(backColor));
2021
using var borderPen = VisualStyles.VisualStyleInformation.TextControlBorder.
GetCachedPenScope
();
System.Windows.Forms.Primitives (2)
System\Windows\Forms\GdiPlus\GdiPlusCache.cs (2)
75
/// <inheritdoc cref="
GetCachedPenScope
(Color)"/>
79
/// <inheritdoc cref="
GetCachedPenScope
(Color)"/>