14 references to MeasureText
System.Windows.Forms (14)
winforms\Managed\System\WinForms\Button.cs (1)
129requiredSize = TextRenderer.MeasureText(this.Text, this.Font);
winforms\Managed\System\WinForms\CheckBox.cs (1)
378Size textSize = TextRenderer.MeasureText(this.Text, this.Font);
winforms\Managed\System\WinForms\DataGridViewComboBoxCell.cs (1)
830Size preferredSize = TextRenderer.MeasureText(comboBox.GetItemText(item), comboBox.Font);
winforms\Managed\System\WinForms\DrawListViewColumnHeaderEventArgs.cs (1)
212int padding = TextRenderer.MeasureText(" ", font).Width;
winforms\Managed\System\WinForms\DrawListViewItemEventArgs.cs (1)
171Size textSize = TextRenderer.MeasureText(subItem.Text, subItem.Font);
winforms\Managed\System\WinForms\DrawListViewSubItemEventArgs.cs (1)
218int padding = TextRenderer.MeasureText(" ", font).Width;
winforms\Managed\System\WinForms\NumericUpDown.cs (3)
855int textWidth = TextRenderer.MeasureText(GetNumberText(testNumber), this.Font).Width; 865int shortTextWidth = TextRenderer.MeasureText(shortText, this.Font).Width; 888Size digitSize = TextRenderer.MeasureText(ch.ToString(), this.Font);
winforms\Managed\System\WinForms\RadioButton.cs (1)
321Size textSize = TextRenderer.MeasureText(this.Text, this.Font);
winforms\Managed\System\WinForms\ToolStripDropDownMenu.cs (1)
352tabWidth = TextRenderer.MeasureText("\t", this.Font).Width;
winforms\Managed\System\WinForms\ToolStripItem.cs (1)
2725cachedTextSize = TextRenderer.MeasureText(Text, Font);
winforms\Managed\System\WinForms\ToolStripMenuItem.cs (1)
841cachedShortcutSize = TextRenderer.MeasureText(shortcutString, Font);
winforms\Managed\System\WinForms\TreeView.cs (1)
2826Size textSize = TextRenderer.MeasureText(node.Text, node.TreeView.Font);