3 writes to text
System.Windows.Forms (3)
winforms\Managed\System\WinForms\ButtonInternal\ButtonBaseAdapter.cs (2)
1519
layout.
text
= text;
1545
layout.
text
= Control.Text;
winforms\Managed\System\WinForms\ToolStripItem.cs (1)
4704
layoutOptions.
text
= ((Owner.DisplayStyle & ToolStripItemDisplayStyle.Text) == ToolStripItemDisplayStyle.Text) ? Owner.Text : String.Empty;
6 references to text
System.Windows.Forms (6)
winforms\Managed\System\WinForms\ButtonInternal\ButtonBaseAdapter.cs (6)
1059
if (!string.IsNullOrEmpty(
text
)) {
1315
if(imageSize == Size.Empty ||
text
== null ||
text
.Length == 0 || textImageRelation == TextImageRelation.Overlay) {
1447
textSize = Size.Ceiling(g.MeasureString(
text
, font, new SizeF(proposedSize.Width, proposedSize.Height), gdipStringFormat));
1451
else if (!string.IsNullOrEmpty(
text
)) { // GDI text rendering (Whidbey feature).
1452
textSize = TextRenderer.MeasureText(
text
, font, proposedSize, this.TextFormatFlags);