40 references to HighlightText
System.Drawing.Common (2)
System\Drawing\SystemBrushes.cs (1)
33
public static Brush HighlightText => FromSystemColor(SystemColors.
HighlightText
);
System\Drawing\SystemPens.cs (1)
34
public static Pen HighlightText => FromSystemColor(SystemColors.
HighlightText
);
System.Windows.Forms (31)
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonFlatAdapter.cs (2)
75
PaintField(e, layout, colors, IsHighContrastHighlighted() ? SystemColors.
HighlightText
: colors.WindowText, drawFocus: false);
250
? SystemColors.
HighlightText
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\Buttons\ButtonInternal\DarkMode\ButtonDarkModeAdapter.cs (2)
41
textColor = SystemColors.
HighlightText
;
62
backColor = SystemColors.
HighlightText
;
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)
600
foreColor = Application.IsDarkModeEnabled ? SystemColors.ControlText : SystemColors.
HighlightText
;
System\Windows\Forms\Controls\PropertyGrid\PropertyGrid.cs (1)
78
private Color _selectedItemWithFocusForeColor = Application.IsDarkModeEnabled ? SystemColors.ControlText : 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)
961
textColor = SystemColors.
HighlightText
;
1007
Color arrowColor = (Selected || Pressed) ? SystemColors.
HighlightText
: SystemColors.MenuText;
System\Windows\Forms\Controls\ToolStrips\ToolStripSystemDarkModeRenderer.cs (4)
53
Color c when c == SystemColors.
HighlightText
=> Color.White,
471
? SystemColors.
HighlightText
567
? GetDarkModeColor(SystemColors.
HighlightText
)
596
? GetDarkModeColor(SystemColors.
HighlightText
)
System\Windows\Forms\Controls\TreeView\TreeView.cs (1)
2828
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 (7)
System\ComponentModel\Design\CollectionEditor.CollectionEditorCollectionForm.cs (1)
598
textColor = SystemColors.
HighlightText
;
System\ComponentModel\Design\DesignerActionPanel.TextBoxPropertyLine.cs (1)
165
_readOnlyTextBoxLabel.ForeColor = SystemColors.
HighlightText
;
System\Windows\Forms\Design\ComponentTray.cs (2)
1428
selectionBorderBrush = new HatchBrush(HatchStyle.Percent50, SystemColors.
HighlightText
, Color.Transparent);
1445
c.ForeColor = SystemColors.
HighlightText
;
System\Windows\Forms\Design\TabOrder.cs (2)
57
_highlightTextBrush = new SolidBrush(SystemColors.
HighlightText
);
279
textColor = SystemColors.
HighlightText
;
System\Windows\Forms\Design\ToolStripCollectionEditor.ToolStripItemEditorForm.cs (1)
768
textColor = SystemColors.
HighlightText
;