1 write to _toolStripContainer
System.Windows.Forms.Tests (1)
ToolStripContainerTests.cs (1)
15_toolStripContainer = new();
67 references to _toolStripContainer
System.Windows.Forms.Tests (67)
ToolStripContainerTests.cs (67)
20_toolStripContainer.Dispose(); 26_toolStripContainer.Should().NotBeNull(); 27_toolStripContainer.TopToolStripPanel.Should().NotBeNull(); 28_toolStripContainer.BottomToolStripPanel.Should().NotBeNull(); 29_toolStripContainer.LeftToolStripPanel.Should().NotBeNull(); 30_toolStripContainer.RightToolStripPanel.Should().NotBeNull(); 31_toolStripContainer.ContentPanel.Should().NotBeNull(); 32_toolStripContainer.TopToolStripPanel.Dock.Should().Be(DockStyle.Top); 33_toolStripContainer.BottomToolStripPanel.Dock.Should().Be(DockStyle.Bottom); 34_toolStripContainer.LeftToolStripPanel.Dock.Should().Be(DockStyle.Left); 35_toolStripContainer.RightToolStripPanel.Dock.Should().Be(DockStyle.Right); 36_toolStripContainer.Controls.Should().NotBeNull(); 37_toolStripContainer.Controls.Count.Should().Be(5); 46PropertyInfo propertyInfo = _toolStripContainer.GetType().GetProperty(propertyName); 47propertyInfo.SetValue(_toolStripContainer, value); 48Size result = (Size)propertyInfo.GetValue(_toolStripContainer); 58_toolStripContainer.BackColorChanged += handler; 60_toolStripContainer.BackColor = Color.Red; 63_toolStripContainer.BackColorChanged -= handler; 65_toolStripContainer.BackColor = Color.Blue; 73_toolStripContainer.BackgroundImage = value; 75_toolStripContainer.BackgroundImage.Should().Be(value); 83_toolStripContainer.BackgroundImageChanged += handler; 85_toolStripContainer.BackgroundImage = new Bitmap(10, 10); 88_toolStripContainer.BackgroundImageChanged -= handler; 90_toolStripContainer.BackgroundImage = new Bitmap(20, 20); 99_toolStripContainer.BackgroundImageLayoutChanged += handler; 101_toolStripContainer.BackgroundImageLayout = ImageLayout.Center; 104_toolStripContainer.BackgroundImageLayoutChanged -= handler; 106_toolStripContainer.BackgroundImageLayout = ImageLayout.Stretch; 114_toolStripContainer.BottomToolStripPanelVisible = value; 115_toolStripContainer.BottomToolStripPanelVisible.Should().Be(value); 122_toolStripContainer.CausesValidation = value; 123_toolStripContainer.CausesValidation.Should().Be(value); 131_toolStripContainer.ContextMenuStrip = contextMenuStrip; 132_toolStripContainer.ContextMenuStrip.Should().Be(contextMenuStrip); 134_toolStripContainer.ContextMenuStrip = null; 135_toolStripContainer.ContextMenuStrip.Should().BeNull(); 143_toolStripContainer.CausesValidationChanged += handler; 144_toolStripContainer.CausesValidation = !_toolStripContainer.CausesValidation; 147_toolStripContainer.CausesValidationChanged -= handler; 148_toolStripContainer.CausesValidation = !_toolStripContainer.CausesValidation; 157_toolStripContainer.ContextMenuStripChanged += handler; 158_toolStripContainer.ContextMenuStrip = new ContextMenuStrip(); 161_toolStripContainer.ContextMenuStripChanged -= handler; 162_toolStripContainer.ContextMenuStrip = null; 170_toolStripContainer.Cursor = value; 171_toolStripContainer.Cursor.Should().Be(value); 174_toolStripContainer.Cursor = value; 175_toolStripContainer.Cursor.Should().Be(value); 183_toolStripContainer.CursorChanged += handler; 184_toolStripContainer.Cursor = Cursors.Hand; 187_toolStripContainer.CursorChanged -= handler; 188_toolStripContainer.Cursor = Cursors.Default; 200_toolStripContainer.ForeColorChanged += handler; 203_toolStripContainer.ForeColor = colorValue; 204_toolStripContainer.ForeColor.Should().Be(colorValue); 207_toolStripContainer.ForeColorChanged -= handler; 208_toolStripContainer.ForeColor = Color.Red; 218PropertyInfo propertyInfo = _toolStripContainer.GetType().GetProperty(propertyName); 220bool defaultValue = (bool)propertyInfo.GetValue(_toolStripContainer); 223propertyInfo.SetValue(_toolStripContainer, true); 224bool value = (bool)propertyInfo.GetValue(_toolStripContainer); 227propertyInfo.SetValue(_toolStripContainer, false); 228value = (bool)propertyInfo.GetValue(_toolStripContainer);