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