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