26 references to GrayText
System.Drawing.Common.Tests (4)
System\Drawing\ColorTranslatorTests.cs (2)
25
yield return (unchecked((int)0x80000011), SystemColors.
GrayText
);
120
yield return ("graytext", SystemColors.
GrayText
);
System\Drawing\SystemBrushesTests.cs (1)
26
yield return Brush(() => SystemBrushes.GrayText, SystemColors.
GrayText
);
System\Drawing\SystemPensTest.cs (1)
28
yield return Pen(() => SystemPens.GrayText, SystemColors.
GrayText
);
System.Windows.Forms (15)
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonBaseAdapter.ColorOptions.cs (1)
62
colors.WindowDisabled = HighContrast ? SystemColors.
GrayText
: colors.ButtonShadow;
System\Windows\Forms\Controls\DateTimePicker\DateTimePicker.cs (1)
43
protected static readonly Color DefaultTrailingForeColor = SystemColors.
GrayText
;
System\Windows\Forms\Controls\GroupBox\GroupBox.cs (1)
547
Color boxColor = Enabled ? ForeColor : SystemColors.
GrayText
;
System\Windows\Forms\Controls\ListBoxes\CheckedListBox.cs (3)
585
foreColor = SystemColors.
GrayText
;
604
foreColor = SystemColors.
GrayText
;
731
foreColor = SystemColors.
GrayText
;
System\Windows\Forms\Controls\MonthCalendar\MonthCalendar.cs (1)
64
private static readonly Color s_trailingForeColor = SystemColors.
GrayText
;
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.cs (2)
140
_grayTextColor = SystemColors.
GrayText
;
362
return SystemColors.
GrayText
;
System\Windows\Forms\Controls\TextBox\TextBox.cs (1)
910
TextRenderer.DrawTextInternal(hdc, PlaceholderText, Font, rectangle, SystemColors.
GrayText
, TextRenderer.DefaultQuality, flags);
System\Windows\Forms\Controls\ToolStrips\ProfessionalColorTable.cs (1)
378
Color grayText = SystemColors.
GrayText
;
System\Windows\Forms\Controls\ToolStrips\ToolStripRenderer.cs (1)
872
textColor = (item is not null && item.Enabled) ? textColor : SystemColors.
GrayText
;
System\Windows\Forms\Rendering\ControlPaint.cs (2)
1327
? (SystemInformation.HighContrast ? SystemColors.
GrayText
: SystemColors.ControlDark)
2004
TextRenderer.DrawTextInternal(dc, s, font, layoutRectangle, SystemColors.
GrayText
, quality, format);
System\Windows\Forms\Rendering\TextRenderer.cs (1)
552
return SystemColors.
GrayText
;
System.Windows.Forms.Design (1)
System\Windows\Forms\Design\DesignBindingPicker.cs (1)
707
dataSourceNode.ForeColor = SystemColors.
GrayText
;
System.Windows.Forms.Tests (5)
System\Windows\Forms\DateTimePickerTests.cs (1)
42
Assert.Equal(SystemColors.
GrayText
, control.CalendarTrailingForeColor);
System\Windows\Forms\MonthCalendarTests.cs (1)
137
Assert.Equal(SystemColors.
GrayText
, control.TrailingForeColor);
System\Windows\Forms\PropertyGridTests.cs (3)
87
Assert.Equal(SystemColors.
GrayText
, control.DisabledItemForeColor);
1499
Assert.Equal(SystemColors.
GrayText
, control.DisabledItemForeColor);
1515
Assert.Equal(SystemColors.
GrayText
, control.DisabledItemForeColor);
System.Windows.Forms.UI.IntegrationTests (1)
PropertyGridTests.cs (1)
143
_propertyGrid.DisabledItemForeColor.Should().Be(SystemColors.
GrayText
);