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