1 write to _toolStripContainer
System.Windows.Forms.Tests (1)
ToolStripContainerTests.cs (1)
17_toolStripContainer = new();
67 references to _toolStripContainer
System.Windows.Forms.Tests (67)
ToolStripContainerTests.cs (67)
22_toolStripContainer.Dispose(); 28_toolStripContainer.Should().NotBeNull(); 29_toolStripContainer.TopToolStripPanel.Should().NotBeNull(); 30_toolStripContainer.BottomToolStripPanel.Should().NotBeNull(); 31_toolStripContainer.LeftToolStripPanel.Should().NotBeNull(); 32_toolStripContainer.RightToolStripPanel.Should().NotBeNull(); 33_toolStripContainer.ContentPanel.Should().NotBeNull(); 34_toolStripContainer.TopToolStripPanel.Dock.Should().Be(DockStyle.Top); 35_toolStripContainer.BottomToolStripPanel.Dock.Should().Be(DockStyle.Bottom); 36_toolStripContainer.LeftToolStripPanel.Dock.Should().Be(DockStyle.Left); 37_toolStripContainer.RightToolStripPanel.Dock.Should().Be(DockStyle.Right); 38_toolStripContainer.Controls.Should().NotBeNull(); 39_toolStripContainer.Controls.Count.Should().Be(5); 48PropertyInfo propertyInfo = _toolStripContainer.GetType().GetProperty(propertyName); 49propertyInfo.SetValue(_toolStripContainer, value); 50Size result = (Size)propertyInfo.GetValue(_toolStripContainer); 60_toolStripContainer.BackColorChanged += handler; 62_toolStripContainer.BackColor = Color.Red; 65_toolStripContainer.BackColorChanged -= handler; 67_toolStripContainer.BackColor = Color.Blue; 75_toolStripContainer.BackgroundImage = value; 77_toolStripContainer.BackgroundImage.Should().Be(value); 85_toolStripContainer.BackgroundImageChanged += handler; 87_toolStripContainer.BackgroundImage = new Bitmap(10, 10); 90_toolStripContainer.BackgroundImageChanged -= handler; 92_toolStripContainer.BackgroundImage = new Bitmap(20, 20); 101_toolStripContainer.BackgroundImageLayoutChanged += handler; 103_toolStripContainer.BackgroundImageLayout = ImageLayout.Center; 106_toolStripContainer.BackgroundImageLayoutChanged -= handler; 108_toolStripContainer.BackgroundImageLayout = ImageLayout.Stretch; 116_toolStripContainer.BottomToolStripPanelVisible = value; 117_toolStripContainer.BottomToolStripPanelVisible.Should().Be(value); 124_toolStripContainer.CausesValidation = value; 125_toolStripContainer.CausesValidation.Should().Be(value); 133_toolStripContainer.ContextMenuStrip = contextMenuStrip; 134_toolStripContainer.ContextMenuStrip.Should().Be(contextMenuStrip); 136_toolStripContainer.ContextMenuStrip = null; 137_toolStripContainer.ContextMenuStrip.Should().BeNull(); 145_toolStripContainer.CausesValidationChanged += handler; 146_toolStripContainer.CausesValidation = !_toolStripContainer.CausesValidation; 149_toolStripContainer.CausesValidationChanged -= handler; 150_toolStripContainer.CausesValidation = !_toolStripContainer.CausesValidation; 159_toolStripContainer.ContextMenuStripChanged += handler; 160_toolStripContainer.ContextMenuStrip = new ContextMenuStrip(); 163_toolStripContainer.ContextMenuStripChanged -= handler; 164_toolStripContainer.ContextMenuStrip = null; 172_toolStripContainer.Cursor = value; 173_toolStripContainer.Cursor.Should().Be(value); 176_toolStripContainer.Cursor = value; 177_toolStripContainer.Cursor.Should().Be(value); 185_toolStripContainer.CursorChanged += handler; 186_toolStripContainer.Cursor = Cursors.Hand; 189_toolStripContainer.CursorChanged -= handler; 190_toolStripContainer.Cursor = Cursors.Default; 202_toolStripContainer.ForeColorChanged += handler; 205_toolStripContainer.ForeColor = colorValue; 206_toolStripContainer.ForeColor.Should().Be(colorValue); 209_toolStripContainer.ForeColorChanged -= handler; 210_toolStripContainer.ForeColor = Color.Red; 220PropertyInfo propertyInfo = _toolStripContainer.GetType().GetProperty(propertyName); 222bool defaultValue = (bool)propertyInfo.GetValue(_toolStripContainer); 225propertyInfo.SetValue(_toolStripContainer, true); 226bool value = (bool)propertyInfo.GetValue(_toolStripContainer); 229propertyInfo.SetValue(_toolStripContainer, false); 230value = (bool)propertyInfo.GetValue(_toolStripContainer);