Base:
property
Font
System.Windows.Forms.ToolStripItem.Font
11 writes to Font
System.Windows.Forms.Tests (11)
System\Windows\Forms\ToolStripControlHostTests.cs (9)
972item.Font = value; 978item.Font = value; 992Assert.Throws<ObjectDisposedException>(() => item.Font = font); 1004item.Font = font; 1008item.Font = null; 1012item.Font = font; 1044item.Font = font; 1048item.Font = null; 1052item.Font = font;
System\Windows\Forms\ToolStripTextBoxTests.cs (2)
184_toolStripTextBox.Font = ToolStripManager.DefaultFont; 188_toolStripTextBox.Font = new Font("Arial", 8.25f);
19 references to Font
System.Windows.Forms (2)
System\Windows\Forms\Controls\ToolStrips\ToolStripComboBox.cs (1)
443return !Equals(Font, ToolStripManager.DefaultFont);
System\Windows\Forms\Controls\ToolStrips\ToolStripTextBox.cs (1)
158return Font != ToolStripManager.DefaultFont;
System.Windows.Forms.Tests (17)
System\Windows\Forms\ToolStripControlHostTests.cs (17)
85Assert.Same(c.Font, item.Font); 618Assert.Same(value, item.Font); 950Assert.Throws<ObjectDisposedException>(() => item.Font); 973Assert.Equal(value ?? Control.DefaultFont, item.Font); 979Assert.Equal(value ?? Control.DefaultFont, item.Font); 998PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(ToolStripControlHost))[nameof(ToolStripControlHost.Font)]; 1005Assert.Same(font, item.Font); 1009Assert.Equal(Control.DefaultFont, item.Font); 1013Assert.Same(font, item.Font); 1017Assert.Equal(Control.DefaultFont, item.Font); 1024PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(ToolStripControlHost))[nameof(ToolStripControlHost.Font)]; 1038PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(ToolStripControlHost))[nameof(ToolStripControlHost.Font)]; 1045Assert.Same(font, item.Font); 1049Assert.Equal(Control.DefaultFont, item.Font); 1053Assert.Same(font, item.Font); 1057Assert.Equal(Control.DefaultFont, item.Font); 1064PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(ToolStripControlHost))[nameof(ToolStripControlHost.Font)];