37 references to DrawText
System.Windows.Forms (31)
System\Windows\Forms\Controls\Buttons\ButtonRenderer.cs (2)
162
TextRenderer.
DrawText
(g, buttonText, font, contentBounds, textColor, flags);
273
TextRenderer.
DrawText
(deviceContext, buttonText, font, contentBounds, textColor, flags);
System\Windows\Forms\Controls\Buttons\CheckBoxRenderer.cs (2)
147
TextRenderer.
DrawText
(g, checkBoxText, font, textBounds, textColor, flags);
219
TextRenderer.
DrawText
(g, checkBoxText, font, textBounds, textColor, flags);
System\Windows\Forms\Controls\Buttons\RadioButtonRenderer.cs (2)
147
TextRenderer.
DrawText
(g, radioButtonText, font, textBounds, textColor, flags);
240
TextRenderer.
DrawText
(g, radioButtonText, font, textBounds, textColor, flags);
System\Windows\Forms\Controls\ComboBox\ComboBoxRenderer.cs (1)
92
TextRenderer.
DrawText
(g, comboBoxText, font, textBounds, textColor, flags);
System\Windows\Forms\Controls\DataGridView\DataGridViewButtonCell.cs (1)
992
TextRenderer.
DrawText
(
System\Windows\Forms\Controls\DataGridView\DataGridViewColumnHeaderCell.cs (1)
976
TextRenderer.
DrawText
(
System\Windows\Forms\Controls\DataGridView\DataGridViewComboBoxCell.cs (1)
2335
TextRenderer.
DrawText
(
System\Windows\Forms\Controls\DataGridView\DataGridViewLinkCell.cs (1)
1027
TextRenderer.
DrawText
(
System\Windows\Forms\Controls\DataGridView\DataGridViewRowHeaderCell.cs (1)
888
TextRenderer.
DrawText
(
System\Windows\Forms\Controls\DataGridView\DataGridViewTextBoxCell.cs (1)
743
TextRenderer.
DrawText
(graphics,
System\Windows\Forms\Controls\DataGridView\DataGridViewTopLeftHeaderCell.cs (1)
328
TextRenderer.
DrawText
(
System\Windows\Forms\Controls\GroupBox\GroupBoxRenderer.cs (2)
202
TextRenderer.
DrawText
(deviceContext, groupBoxText, font, textBounds, textColor, flags);
303
TextRenderer.
DrawText
(deviceContext, groupBoxText, font, textBounds, textColor, flags);
System\Windows\Forms\Controls\Labels\LinkLabel.cs (2)
1302
TextRenderer.
DrawText
(
1365
TextRenderer.
DrawText
(
System\Windows\Forms\Controls\ListBoxes\CheckedListBox.cs (1)
702
TextRenderer.
DrawText
(e, text, font, stringBounds, foreColor, flags);
System\Windows\Forms\Controls\ListView\DrawListViewColumnHeaderEventArgs.cs (1)
145
TextRenderer.
DrawText
(Graphics, text, Font, newBounds, ForeColor, flags);
System\Windows\Forms\Controls\ListView\DrawListViewItemEventArgs.cs (1)
91
TextRenderer.
DrawText
(Graphics, Item.Text, Item.Font, UpdateBounds(Bounds, drawText: true), Item.ForeColor, flags);
System\Windows\Forms\Controls\ListView\DrawListViewSubItemEventArgs.cs (1)
143
TextRenderer.
DrawText
(Graphics, text, font, newBounds, color, flags);
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\GridEntry.cs (1)
1608
TextRenderer.
DrawText
(g, label, font, textRect, textColor, PropertyGrid.MeasureTextHelper.GetTextRendererFlags());
System\Windows\Forms\Controls\TabControl\TabRenderer.cs (2)
80
TextRenderer.
DrawText
(g, tabItemText, font, contentBounds, textColor, flags);
131
TextRenderer.
DrawText
(g, tabItemText, font, contentBounds, textColor, flags);
System\Windows\Forms\Controls\TextBox\TextBoxRenderer.cs (1)
84
TextRenderer.
DrawText
(g, textBoxText, font, textBounds, textColor, flags);
System\Windows\Forms\Controls\ToolStrips\ToolStripRenderer.cs (2)
882
TextRenderer.
DrawText
(textGraphics, text, textFont, new Rectangle(Point.Empty, textSize), textColor, textFormat);
888
TextRenderer.
DrawText
(g, text, textFont, textRect, textColor, textFormat);
System\Windows\Forms\Controls\TreeView\TreeView.cs (2)
2848
TextRenderer.
DrawText
(g, node.Text, font, bounds, color, TextFormatFlags.Default);
2855
TextRenderer.
DrawText
(g, node.Text, font, bounds, color, TextFormatFlags.Default);
System\Windows\Forms\ToolTip\DrawToolTipEventArgs.cs (1)
93
TextRenderer.
DrawText
(Graphics, ToolTipText, Font, Bounds, _foreColor, flags);
System.Windows.Forms.Design (2)
System\ComponentModel\Design\CollectionEditor.SplitButton.cs (1)
233
TextRenderer.
DrawText
(pevent, Text, Font, bounds, SystemColors.ControlText, formatFlags);
System\Windows\Forms\Design\DesignBindingPicker.cs (1)
1865
TextRenderer.
DrawText
(e.Graphics, Text, Font, rect, ForeColor, formatFlags);
System.Windows.Forms.Tests (4)
System\Windows\Forms\TextRendererTests.cs (4)
258
TextRenderer.
DrawText
(graphics, text, font, rectangle, foreColor, flags);
261
TextRenderer.
DrawText
(graphics, text, font, rectangle, foreColor, flags);
343
TextRenderer.
DrawText
(mockDeviceContext.Object, "text", SystemFonts.MenuFont, new Rectangle(1, 2, 300, 400), Color.Red, TextFormatFlags.Default);
766
TextRenderer.
DrawText
(