10 references to MaxTextSize
System.Windows.Forms (1)
System\Windows\Forms\NotifyIcon.cs (1)
242
if (value.Length >
MaxTextSize
)
System.Windows.Forms.Tests (9)
System\Windows\Forms\NotifyIconTests.cs (9)
340
yield return new object[] { visible, icon, new string('a', NotifyIcon.
MaxTextSize
), new string('a', NotifyIcon.
MaxTextSize
) };
392
yield return new object[] { visible, null, new string('a', NotifyIcon.
MaxTextSize
), new string('a', NotifyIcon.
MaxTextSize
), 0 };
396
yield return new object[] { false, new Icon("bitmaps/10x16_one_entry_32bit.ico"), new string('a', NotifyIcon.
MaxTextSize
), new string('a', NotifyIcon.
MaxTextSize
), 0 };
398
yield return new object[] { true, new Icon("bitmaps/10x16_one_entry_32bit.ico"), new string('a', NotifyIcon.
MaxTextSize
), new string('a', NotifyIcon.
MaxTextSize
), 1 };
432
Assert.Throws<ArgumentOutOfRangeException>("Text", () => notifyIcon.Text = new string('a', NotifyIcon.
MaxTextSize
+ 1));