46 references to HighlightText
System.Drawing.Common.Tests (4)
System\Drawing\ColorTranslatorTests.cs (2)
27
yield return (unchecked((int)0x8000000E), SystemColors.
HighlightText
);
122
yield return ("highlighttext", SystemColors.
HighlightText
);
System\Drawing\SystemBrushesTests.cs (1)
28
yield return Brush(() => SystemBrushes.HighlightText, SystemColors.
HighlightText
);
System\Drawing\SystemPensTest.cs (1)
30
yield return Pen(() => SystemPens.HighlightText, SystemColors.
HighlightText
);
System.Windows.Forms (25)
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonFlatAdapter.cs (2)
75
PaintField(e, layout, colors, IsHighContrastHighlighted() ? SystemColors.
HighlightText
: colors.WindowText, drawFocus: false);
256
IsHighContrastHighlighted() ? SystemColors.
HighlightText
: colors.WindowText,
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonPopupAdapter.cs (2)
40
state != CheckState.Indeterminate && IsHighContrastHighlighted() ? SystemColors.
HighlightText
: colors.WindowText,
82
PaintField(e, layout, colors, IsHighContrastHighlighted() ? SystemColors.
HighlightText
: colors.WindowText, drawFocus: true);
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonStandardAdapter.cs (2)
167
Color highlightTextColor = SystemColors.
HighlightText
;
178
PaintField(e, layout, colors, SystemColors.
HighlightText
, drawFocus: true);
System\Windows\Forms\Controls\DataGridView\DataGridViewLinkCell.cs (5)
58
return Selected ? SystemColors.
HighlightText
: LinkUtilities.IEActiveLinkColor;
166
return Selected ? SystemColors.
HighlightText
: LinkUtilities.IELinkColor;
298
return Selected ? SystemColors.
HighlightText
: LinkUtilities.GetVisitedLinkColor();
303
return Selected ? SystemColors.
HighlightText
: LinkUtilities.IEVisitedLinkColor;
356
return Selected ? SystemColors.
HighlightText
: SystemColors.HotTrack;
System\Windows\Forms\Controls\ListBoxes\CheckedListBox.cs (1)
599
foreColor = SystemColors.
HighlightText
;
System\Windows\Forms\Controls\PropertyGrid\PropertyGrid.cs (1)
77
private Color _selectedItemWithFocusForeColor = SystemColors.
HighlightText
;
System\Windows\Forms\Controls\ToolStrips\ProfessionalColorTable.cs (1)
379
Color highlightText = SystemColors.
HighlightText
;
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDownButton.cs (1)
203
arrowColor = Enabled ? SystemColors.
HighlightText
: SystemColors.ControlDark;
System\Windows\Forms\Controls\ToolStrips\ToolStripHighContrastRenderer.cs (6)
154
Color arrowColor = item.Selected && !item.Pressed ? SystemColors.
HighlightText
: SystemColors.ControlText;
206
: item.Selected && !item.Pressed ? SystemColors.
HighlightText
220
e.DefaultTextColor = SystemColors.
HighlightText
;
222
else if (e.TextColor != SystemColors.
HighlightText
&& e.TextColor != SystemColors.ControlText)
227
e.DefaultTextColor = SystemColors.
HighlightText
;
245
e.TextColor = SystemColors.
HighlightText
;
System\Windows\Forms\Controls\ToolStrips\ToolStripMenuItem.cs (2)
964
textColor = SystemColors.
HighlightText
;
1010
Color arrowColor = (Selected || Pressed) ? SystemColors.
HighlightText
: SystemColors.MenuText;
System\Windows\Forms\Controls\TreeView\TreeView.cs (1)
2841
Color color = (((curState & TreeNodeStates.Selected) == TreeNodeStates.Selected) && node.TreeView.Focused) ? SystemColors.
HighlightText
: (node.ForeColor != Color.Empty) ? node.ForeColor : node.TreeView.ForeColor;
System\Windows\Forms\Rendering\DrawItemEventArgs.cs (1)
115
=> (State & DrawItemState.Selected) == DrawItemState.Selected ? SystemColors.
HighlightText
: _foreColor;
System.Windows.Forms.Design (6)
System\ComponentModel\Design\CollectionEditor.CollectionEditorCollectionForm.cs (1)
584
textColor = SystemColors.
HighlightText
;
System\ComponentModel\Design\DesignerActionPanel.TextBoxPropertyLine.cs (1)
165
_readOnlyTextBoxLabel.ForeColor = SystemColors.
HighlightText
;
System\Windows\Forms\Design\ComponentTray.cs (2)
1443
selectionBorderBrush = new HatchBrush(HatchStyle.Percent50, SystemColors.
HighlightText
, Color.Transparent);
1460
c.ForeColor = SystemColors.
HighlightText
;
System\Windows\Forms\Design\TabOrder.cs (2)
57
_highlightTextBrush = new SolidBrush(SystemColors.
HighlightText
);
282
textColor = SystemColors.
HighlightText
;
System.Windows.Forms.Tests (8)
System\Windows\Forms\DataGridViewTests.cs (1)
2341
SelectionForeColor = SystemColors.
HighlightText
,
System\Windows\Forms\DataGridViewTests.Rendering.cs (1)
126
SelectionForeColor = SystemColors.
HighlightText
,
System\Windows\Forms\DrawItemEventArgsTests.cs (3)
13
yield return new object[] { null, Rectangle.Empty, -2, DrawItemState.None - 1, SystemColors.
HighlightText
, SystemColors.Highlight };
15
yield return new object[] { SystemFonts.DefaultFont, new Rectangle(-1, 2, -3, -4), 0, DrawItemState.Selected, SystemColors.
HighlightText
, SystemColors.Highlight };
58
Assert.Equal((state & DrawItemState.Selected) == DrawItemState.Selected ? SystemColors.
HighlightText
: foreColor, e.ForeColor);
System\Windows\Forms\PropertyGridTests.cs (3)
141
Assert.Equal(SystemColors.
HighlightText
, control.SelectedItemWithFocusForeColor);
2534
Assert.Equal(SystemColors.
HighlightText
, control.SelectedItemWithFocusForeColor);
2550
Assert.Equal(SystemColors.
HighlightText
, control.SelectedItemWithFocusForeColor);
System.Windows.Forms.UI.IntegrationTests (1)
PropertyGridTests.cs (1)
134
_propertyGrid.SelectedItemWithFocusForeColor.Should().Be(SystemColors.
HighlightText
);
WinFormsControlsTest (2)
DataGridViewTest.Designer.cs (2)
61
dataGridViewCellStyle1.SelectionForeColor = System.Drawing.SystemColors.
HighlightText
;
79
dataGridViewCellStyle3.SelectionForeColor = System.Drawing.SystemColors.
HighlightText
;