98 writes to Visible
System.Windows.Forms (14)
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (3)
788Visible = _toolStripGripStyle == ToolStripGripStyle.Visible, 814Grip.Visible = _toolStripGripStyle == ToolStripGripStyle.Visible; 4319OverflowButton.Visible = false;
System\Windows\Forms\Controls\ToolStrips\ToolStripControlHost.cs (1)
589Visible = ControlInternal.Visible;
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDownMenu.cs (4)
780UpScrollButton.Visible = true; 781DownScrollButton.Visible = true; 785UpScrollButton.Visible = false; 786DownScrollButton.Visible = false;
System\Windows\Forms\Controls\ToolStrips\ToolStripMenuItem.cs (1)
535menuItem.Visible = ((IArrangedElement)this).ParticipatesInLayout;
System\Windows\Forms\Controls\ToolStrips\ToolStripSplitStackLayout.cs (2)
224toolStrip.OverflowButton.Visible = needOverflow; 379toolStrip.OverflowButton.Visible = needOverflow;
System\Windows\Forms\MDI\MDIControlStrip.cs (3)
63_system.Visible = GetTargetWindowIconVisibility(); 91_system.Visible = GetTargetWindowIconVisibility(); 131_system.Visible = GetTargetWindowIconVisibility();
System.Windows.Forms.Design (18)
System\Windows\Forms\Design\DesignerVerbToolStripMenuItem.cs (1)
26Visible = _verb.Visible;
System\Windows\Forms\Design\StandardCommandToolStripMenuItem.cs (1)
52Visible = _menuCommand.Visible;
System\Windows\Forms\Design\ToolStripDesigner.cs (4)
735_editorNode.Visible = false; 2022_editorNode.Visible = true; 2323_editorNode.Visible = false; 2379_editorNode.Visible = true;
System\Windows\Forms\Design\ToolStripDropDownDesigner.cs (2)
308_menuItem.Visible = false; 653_menuItem.Visible = true;
System\Windows\Forms\Design\ToolStripItemCustomMenuItemCollection.cs (2)
70item.Visible = browsable; 107item.Visible = browsable;
System\Windows\Forms\Design\ToolStripItemDesigner.cs (2)
1170ToolStripItem.Visible = true; 1181ToolStripItem.Visible = _currentVisible;
System\Windows\Forms\Design\ToolStripMenuItemDesigner.cs (6)
535editedItem.Visible = true; 640editedItem.Visible = true; 736_typeHereNode.Visible = true; 1367toolItem.Visible = false; 2307private void RestoreVisible() => MenuItem.Visible = Visible; 2350editedItem.Visible = true;
System.Windows.Forms.Tests (63)
System\Windows\Forms\ToolStripControlHostTests.cs (11)
867Visible = visible, 1391Visible = visible, 1459Visible = visible, 2411Visible = value 2419item.Visible = value; 3061Visible = visible, 3080Visible = visible, 3104Visible = visible, 3177Visible = visible, 3248Visible = visible, 3269Visible = visible,
System\Windows\Forms\ToolStripItemTests.cs (50)
2524Visible = visible, 2597Visible = visible, 2620Visible = visible, 2647Visible = visible, 2684Visible = visible, 2712Visible = visible, 2755Visible = visible, 2782Visible = visible, 2819Visible = visible, 2859Visible = visible, 6969Visible = visible, 7025Visible = visible, 9142item.Visible = visible; 9164item.Visible = visible; 9176Visible = value 9183item.Visible = value; 9214Visible = value 9221item.Visible = value; 9241item.Visible = value; 9247item.Visible = value; 9271item.Visible = value; 9278item.Visible = value; 9315item.Visible = value; 9322item.Visible = value; 9367item.Visible = value; 9377item.Visible = value; 9409item.Visible = value; 9416item.Visible = value; 9453item.Visible = value; 9460item.Visible = value; 9493item.Visible = value; 9503item.Visible = value; 9600item.Visible = false; 9616item.Visible = false; 11112Visible = visible, 11141Visible = visible, 11171Visible = visible, 11204Visible = visible, 11250Visible = visible, 11283Visible = visible, 12544Visible = visible, 12558Visible = visible, 13205Visible = visible, 13234Visible = visible, 13264Visible = visible, 13308Visible = visible, 13374Visible = visible, 13440Visible = visible, 13500Visible = visible, 13544Visible = visible,
System\Windows\Forms\ToolStripMenuItemTests.cs (1)
307Visible = true,
System\Windows\Forms\ToolStripSeparatorTests.cs (1)
258Visible = visible,
System.Windows.Forms.UI.IntegrationTests (1)
ToolStripTests.cs (1)
76hiddenMenu.DropDownClosed += (object? sender, EventArgs e) => { hiddenMenu.Visible = false; };
WinFormsControlsTest (2)
Dialogs.cs (1)
56toolbar.Items.Add(new ToolStripSeparator { Visible = true });
MessageBoxes.cs (1)
42toolbar.Items.Add(new ToolStripSeparator { Visible = true });
150 references to Visible
System.Windows.Forms (21)
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (3)
4216if (_toolStripOverflowButton is not null && _toolStripOverflowButton.Visible) 4221if (_toolStripGrip is not null && _toolStripGrip.Visible) 4709if (item.CanKeyboardSelect && item.Visible)
System\Windows\Forms\Controls\ToolStrips\ToolStrip.ToolStripAccessibleObject.cs (9)
48if (index == 0 && owner.Grip.Visible) 52else if (owner.Grip.Visible && index > 0) 109if (owner.CanOverflow && owner.OverflowButton.Visible && index == owner.Items.Count) 137if (owner.Grip.Visible) 142if (owner.CanOverflow && owner.OverflowButton.Visible) 163&& owner.OverflowButton.Visible 301if (owner.CanOverflow && owner.OverflowButton.Visible && child.Owner == owner.OverflowButton) 332if (owner.Grip.Visible) 342if (owner.CanOverflow && owner.OverflowButton.Visible && child.Owner == owner.OverflowButton)
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDownMenu.cs (2)
483if ((Items[index].Visible && displayRect.Contains(displayRect.X, Items[index].Bounds.Top - delta)) 484|| !Items[index].Visible)
System\Windows\Forms\Controls\ToolStrips\ToolStripItem.cs (3)
2024=> Animate(!DesignMode && Visible && Enabled && ParentInternal is not null); 3323/// Determines if the <see cref="Visible"/> property needs to be persisted. 3541=> Visible && _parent is not null && ((IKeyboardToolTip)_parent).AllowsChildrenToShowToolTips();
System\Windows\Forms\Controls\ToolStrips\ToolstripProfessionalRenderer.cs (3)
447if (toolStrip.OverflowButton.Visible) 871if (toolStrip.OverflowButton.Visible) 905if (!item.Visible)
System\Windows\Forms\MDI\MdiControlStrip.SystemMenuItem.cs (1)
18if (Visible && ShortcutKeys == keyData)
System.Windows.Forms.Design (7)
System\Windows\Forms\Design\ToolStripDesigner.cs (4)
377if (ToolStrip.OverflowButton.Visible) 1323if (IsGlyphTotallyVisible(itemBounds, parentBounds) && item.Visible) 1357if (comp is ToolStripItem item && item.Visible) 2051if (item.Visible
System\Windows\Forms\Design\ToolStripItemGlyph.cs (1)
31if (Item.Visible && Bounds.Contains(p))
System\Windows\Forms\Design\ToolStripMenuItemDesigner.cs (1)
1070if (item.Visible && _selectionService.GetComponentSelected(item))
System\Windows\Forms\Design\ToolStripTemplateNode.cs (1)
540if (currentItem.Visible)
System.Windows.Forms.Tests (122)
System\Windows\Forms\FormTests.cs (2)
1254Assert.False(menuStrip.Items[0].Visible); 1261Assert.True(menuStrip.Items[0].Visible);
System\Windows\Forms\ToolStripButtonTests.cs (6)
90Assert.False(item.Visible); 171Assert.False(item.Visible); 258Assert.False(item.Visible); 348Assert.False(item.Visible); 436Assert.False(item.Visible); 534Assert.False(item.Visible);
System\Windows\Forms\ToolStripControlHostTests.cs (9)
119Assert.False(item.Visible); 684Assert.False(item.Visible); 690Assert.False(item.Visible); 2413Assert.False(item.Visible); 2420Assert.False(item.Visible); 2427Assert.False(item.Visible); 4464Assert.False(item.Visible); 4472Assert.False(item.Visible); 4480Assert.False(item.Visible);
System\Windows\Forms\ToolStripDropDownItemTests.cs (4)
90Assert.False(item.Visible); 179Assert.False(item.Visible); 278Assert.False(item.Visible); 386Assert.False(item.Visible);
System\Windows\Forms\ToolStripItemTests.cs (95)
89Assert.False(item.Visible); 174Assert.False(item.Visible); 269Assert.False(item.Visible); 1129Assert.False(item.Visible); 1135Assert.False(item.Visible); 1141Assert.False(item.Visible); 1167Assert.False(item.Visible); 1173Assert.False(item.Visible); 1179Assert.False(item.Visible); 1193Assert.False(item.Visible); 1199Assert.False(item.Visible); 1205Assert.False(item.Visible); 1223Assert.False(item.Visible); 1230Assert.False(item.Visible); 1237Assert.False(item.Visible); 1267Assert.False(item.Visible); 1274Assert.False(item.Visible); 1281Assert.False(item.Visible); 1319Assert.False(item.Visible); 1329Assert.False(item.Visible); 1339Assert.Equal(!value, item.Visible); 1361Assert.Equal(value, item.Visible); 1368Assert.Equal(value, item.Visible); 1375Assert.Equal(!value, item.Visible); 1405Assert.Equal(value, item.Visible); 1412Assert.Equal(value, item.Visible); 1419Assert.Equal(!value, item.Visible); 1445Assert.Equal(value, item.Visible); 1455Assert.Equal(value, item.Visible); 1465Assert.Equal(!value, item.Visible); 7791Assert.True(item.Visible); 9139Assert.False(item.Visible); 9143Assert.False(item.Visible); 9161Assert.Equal(parentVisible, item.Visible); 9165Assert.Equal(expected, item.Visible); 9178Assert.False(item.Visible); 9184Assert.False(item.Visible); 9190Assert.False(item.Visible); 9216Assert.False(item.Visible); 9222Assert.False(item.Visible); 9228Assert.False(item.Visible); 9242Assert.False(item.Visible); 9248Assert.False(item.Visible); 9254Assert.False(item.Visible); 9272Assert.False(item.Visible); 9279Assert.False(item.Visible); 9286Assert.False(item.Visible); 9316Assert.False(item.Visible); 9323Assert.False(item.Visible); 9330Assert.False(item.Visible); 9368Assert.False(item.Visible); 9378Assert.False(item.Visible); 9388Assert.Equal(!value, item.Visible); 9410Assert.Equal(value, item.Visible); 9417Assert.Equal(value, item.Visible); 9424Assert.Equal(!value, item.Visible); 9454Assert.Equal(value, item.Visible); 9461Assert.Equal(value, item.Visible); 9468Assert.Equal(!value, item.Visible); 9494Assert.Equal(value, item.Visible); 9504Assert.Equal(value, item.Visible); 9514Assert.Equal(!value, item.Visible); 9596PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(ToolStripItem))[nameof(ToolStripItem.Visible)]; 9601Assert.False(item.Visible); 9605Assert.False(item.Visible); 9612PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(ToolStripItem))[nameof(ToolStripItem.Visible)]; 9617Assert.False(item.Visible); 9621Assert.False(item.Visible); 14839Assert.False(item.Visible); 14845Assert.False(item.Visible); 14851Assert.False(item.Visible); 14878Assert.False(item.Visible); 14884Assert.False(item.Visible); 14890Assert.False(item.Visible); 14904Assert.False(item.Visible); 14910Assert.False(item.Visible); 14916Assert.False(item.Visible); 14934Assert.False(item.Visible); 14941Assert.False(item.Visible); 14948Assert.False(item.Visible); 14978Assert.False(item.Visible); 14985Assert.False(item.Visible); 14992Assert.False(item.Visible); 15030Assert.False(item.Visible); 15040Assert.False(item.Visible); 15050Assert.Equal(!value, item.Visible); 15072Assert.Equal(value, item.Visible); 15079Assert.Equal(value, item.Visible); 15086Assert.Equal(!value, item.Visible); 15116Assert.Equal(value, item.Visible); 15123Assert.Equal(value, item.Visible); 15130Assert.Equal(!value, item.Visible); 15156Assert.Equal(value, item.Visible); 15166Assert.Equal(value, item.Visible); 15176Assert.Equal(!value, item.Visible);
System\Windows\Forms\ToolStripMenuItemTests.cs (3)
99Assert.False(item.Visible); 352clone.Visible.Should().Be(original.Visible);
System\Windows\Forms\ToolStripSeparatorTests.cs (1)
87Assert.False(item.Visible);
System\Windows\Forms\ToolStripTests.cs (2)
2807Assert.Equal(value == ToolStripGripStyle.Visible, grip.Visible); 2814Assert.Equal(value == ToolStripGripStyle.Visible, grip.Visible);