98 writes to Visible
System.Windows.Forms (14)
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (3)
790Visible = _toolStripGripStyle == ToolStripGripStyle.Visible, 816Grip.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)
785UpScrollButton.Visible = true; 786DownScrollButton.Visible = true; 790UpScrollButton.Visible = false; 791DownScrollButton.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; 2023_editorNode.Visible = true; 2324_editorNode.Visible = false; 2380_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; 11131Visible = visible, 11160Visible = visible, 11190Visible = visible, 11223Visible = visible, 11269Visible = visible, 11302Visible = visible, 12563Visible = visible, 12577Visible = visible, 13224Visible = visible, 13253Visible = visible, 13283Visible = visible, 13327Visible = visible, 13393Visible = visible, 13459Visible = visible, 13519Visible = visible, 13563Visible = 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)
4218if (_toolStripOverflowButton is not null && _toolStripOverflowButton.Visible) 4223if (_toolStripGrip is not null && _toolStripGrip.Visible) 4714if (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)
2032=> Animate(!DesignMode && Visible && Enabled && ParentInternal is not null); 3331/// Determines if the <see cref="Visible"/> property needs to be persisted. 3549=> 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) 1324if (IsGlyphTotallyVisible(itemBounds, parentBounds) && item.Visible) 1358if (comp is ToolStripItem item && item.Visible) 2052if (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); 14858Assert.False(item.Visible); 14864Assert.False(item.Visible); 14870Assert.False(item.Visible); 14897Assert.False(item.Visible); 14903Assert.False(item.Visible); 14909Assert.False(item.Visible); 14923Assert.False(item.Visible); 14929Assert.False(item.Visible); 14935Assert.False(item.Visible); 14953Assert.False(item.Visible); 14960Assert.False(item.Visible); 14967Assert.False(item.Visible); 14997Assert.False(item.Visible); 15004Assert.False(item.Visible); 15011Assert.False(item.Visible); 15049Assert.False(item.Visible); 15059Assert.False(item.Visible); 15069Assert.Equal(!value, item.Visible); 15091Assert.Equal(value, item.Visible); 15098Assert.Equal(value, item.Visible); 15105Assert.Equal(!value, item.Visible); 15135Assert.Equal(value, item.Visible); 15142Assert.Equal(value, item.Visible); 15149Assert.Equal(!value, item.Visible); 15175Assert.Equal(value, item.Visible); 15185Assert.Equal(value, item.Visible); 15195Assert.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);