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