71 references to ControlText
System.Drawing.Common.Tests (4)
System\Drawing\ColorTranslatorTests.cs (2)
21yield return (unchecked((int)0x80000012), SystemColors.ControlText); 118yield return ("buttontext", SystemColors.ControlText);
System\Drawing\SystemBrushesTests.cs (1)
22yield return Brush(() => SystemBrushes.ControlText, SystemColors.ControlText);
System\Drawing\SystemPensTest.cs (1)
24yield return Pen(() => SystemPens.ControlText, SystemColors.ControlText);
System.Windows.Forms (37)
System\Windows\Forms\Control.cs (1)
1577public static Color DefaultForeColor => SystemColors.ControlText;
System\Windows\Forms\Controls\Buttons\ButtonRenderer.cs (2)
159textColor = SystemColors.ControlText; 270textColor = SystemColors.ControlText;
System\Windows\Forms\Controls\Buttons\CheckBoxRenderer.cs (2)
144textColor = SystemColors.ControlText; 216textColor = SystemColors.ControlText;
System\Windows\Forms\Controls\Buttons\RadioButtonRenderer.cs (2)
144textColor = SystemColors.ControlText; 237textColor = SystemColors.ControlText;
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (1)
19313using var pen = SystemColors.ControlText.GetCachedPenScope();
System\Windows\Forms\Controls\GroupBox\GroupBoxRenderer.cs (1)
353return SystemColors.ControlText;
System\Windows\Forms\Controls\PropertyGrid\PropertyGrid.cs (3)
74private Color _categoryForegroundColor = SystemColors.ControlText; 215_helpPane.ForeColor = SystemColors.ControlText; 3700=> _commandsPane.SetColors(SystemColors.Control, SystemColors.ControlText, Color.Empty, Color.Empty, Color.Empty, Color.Empty);
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\CategoryGridEntry.cs (1)
125ControlPaint.DrawFocusRectangle(g, focusRect, SystemColors.ControlText, OwnerGrid.LineColor);
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.cs (2)
209_dropDownButton.ForeColor = SystemColors.ControlText; 245ForeColor = SystemColors.ControlText,
System\Windows\Forms\Controls\PropertyGrid\PropertyGridToolStripButton.cs (1)
49Pen focusPen1 = new(SystemColors.ControlText, penWidth)
System\Windows\Forms\Controls\ToolStrips\ProfessionalColorTable.cs (1)
376Color controlText = SystemColors.ControlText;
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDownButton.cs (1)
207arrowColor = Enabled ? SystemColors.ControlText : SystemColors.ControlDark;
System\Windows\Forms\Controls\ToolStrips\ToolStripHighContrastRenderer.cs (5)
154Color arrowColor = item.Selected && !item.Pressed ? SystemColors.HighlightText : SystemColors.ControlText; 207: SystemColors.ControlText; 222else if (e.TextColor != SystemColors.HighlightText && e.TextColor != SystemColors.ControlText) 231e.DefaultTextColor = SystemColors.ControlText; 468Pen focusPen1 = new(SystemColors.ControlText, penWidth)
System\Windows\Forms\Controls\ToolStrips\ToolStripItemTextRenderEventArgs.cs (1)
13private Color _textColor = SystemColors.ControlText;
System\Windows\Forms\Controls\ToolStrips\ToolstripProfessionalRenderer.cs (2)
307DrawArrow(new ToolStripArrowRenderEventArgs(g, item, dropDownRect, SystemColors.ControlText, ArrowDirection.Down)); 681e.DefaultArrowColor = item.Enabled ? SystemColors.ControlText : SystemColors.ControlDark;
System\Windows\Forms\Controls\ToolStrips\ToolStripSystemRenderer.cs (2)
393Color arrowColor = item.Enabled ? SystemColors.ControlText : SystemColors.ControlDark; 524Color arrowColor = splitButton.Enabled ? SystemColors.ControlText : SystemColors.ControlDark;
System\Windows\Forms\DarkProfessionalColors.cs (1)
20=> SystemColors.ControlText;
System\Windows\Forms\Design\ComponentEditorForm.PageSelector.cs (1)
233(COLORREF)(uint)ColorTranslator.ToWin32(SystemColors.ControlText));
System\Windows\Forms\Dialogs\CommonDialogs\FontDialog.cs (3)
112_color = SystemColors.ControlText; 370_color = SystemColors.ControlText; 396rgbColors = ShowColor || ShowEffects ? _color : SystemColors.ControlText
System\Windows\Forms\Printing\PrintPreviewControl.cs (2)
595using var brush = SystemColors.ControlText.GetCachedSolidBrushScope(); 720ControlPaint.DrawHighContrastFocusRectangle(e.Graphics, focusRect, SystemColors.ControlText);
System\Windows\Forms\Rendering\ControlPaint.cs (2)
1328: SystemColors.ControlText; 1398=> DrawFocusRectangle(graphics, rectangle, SystemColors.ControlText, SystemColors.Control);
System.Windows.Forms.Design (13)
System\ComponentModel\Design\CollectionEditor.SplitButton.cs (1)
233TextRenderer.DrawText(pevent, Text, Font, bounds, SystemColors.ControlText, formatFlags);
System\ComponentModel\Design\DesignerActionPanel.cs (1)
188public Color LabelForeColor { get; } = SystemColors.ControlText;
System\Drawing\Design\ColorEditor.ColorPalette.cs (2)
386SystemColors.ControlText, 397SystemColors.ControlText,
System\Drawing\Design\ContentAlignmentEditor.ContentUI.cs (1)
111ForeColor = SystemColors.ControlText;
System\Windows\Forms\Design\Behavior\MiniLockedBorderGlyph.cs (1)
53pe.Graphics.FillRectangle(new SolidBrush(SystemColors.ControlText), bounds);
System\Windows\Forms\Design\DesignerUtils.cs (4)
30PInvokeCore.CreateSolidBrush((COLORREF)(uint)ColorTranslator.ToWin32(SystemColors.ControlText)); 32PInvokeCore.CreatePen(PEN_STYLE.PS_SOLID, cWidth: 1, (COLORREF)(uint)ColorTranslator.ToWin32(SystemColors.ControlText)); 176s_grabHandleFillBrush = PInvokeCore.CreateSolidBrush((COLORREF)(uint)ColorTranslator.ToWin32(SystemColors.ControlText)); 179s_grabHandlePenPrimary = PInvokeCore.CreatePen(PEN_STYLE.PS_SOLID, cWidth: 1, (COLORREF)(uint)ColorTranslator.ToWin32(SystemColors.ControlText));
System\Windows\Forms\Design\DockEditor.DockUI.cs (1)
188ForeColor = SystemColors.ControlText;
System\Windows\Forms\Design\ToolStripTemplateNode.cs (2)
1815DrawArrow(new ToolStripArrowRenderEventArgs(g, null, bounds, SystemInformation.HighContrast ? Color.Black : SystemColors.ControlText, ArrowDirection.Down)); 2037DrawArrow(new ToolStripArrowRenderEventArgs(g, splitButton, splitButton.DropDownButtonBounds, SystemColors.ControlText, ArrowDirection.Down));
System.Windows.Forms.Tests (13)
System\Windows\Forms\ControlTests.cs (1)
487Assert.Equal(SystemColors.ControlText, Control.DefaultForeColor);
System\Windows\Forms\FontDialogTests.cs (2)
168yield return new object[] { SystemColors.ControlText, SystemColors.ControlText };
System\Windows\Forms\PropertyGridTests.cs (10)
56Assert.Equal(SystemColors.ControlText, control.CategoryForeColor); 65Assert.Equal(SystemColors.ControlText, control.CommandsForeColor); 108Assert.Equal(SystemColors.ControlText, control.HelpForeColor); 761Assert.Equal(SystemColors.ControlText, control.CategoryForeColor); 777Assert.Equal(SystemColors.ControlText, control.CategoryForeColor); 1250Assert.Equal(SystemColors.ControlText, control.CommandsForeColor); 1266Assert.Equal(SystemColors.ControlText, control.CommandsForeColor); 1953Assert.Equal(SystemColors.ControlText, control.HelpForeColor); 1969Assert.Equal(SystemColors.ControlText, control.HelpForeColor); 3367yield return new object[] { Color.Empty, SystemColors.ControlText };
System.Windows.Forms.UI.IntegrationTests (4)
PropertyGridTests.cs (4)
161_propertyGrid.ForeColor.Should().Be(SystemColors.ControlText); 217_propertyGrid.CommandsForeColor.Should().Be(SystemColors.ControlText); 258_propertyGrid.HelpForeColor.Should().Be(SystemColors.ControlText); 365_propertyGrid.CategoryForeColor.Should().Be(SystemColors.ControlText);