21 writes to Visible
System.Windows.Forms (11)
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDown.cs (7)
962
Visible
= false;
983
Visible
= false;
1299
Visible
= false;
1329
Visible
= false;
1938
toplevel.
Visible
= false;
1947
ActiveDropDowns[0].
Visible
= false;
1957
dropDowns[i].
Visible
= false;
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDownItem.cs (1)
416
DropDown.
Visible
= false;
System\Windows\Forms\Controls\ToolStrips\ToolStripManager.ModalMenuFilter.cs (2)
293
activeToolStripDropDown.
Visible
= false;
378
activeDropDown.
Visible
= false;
System\Windows\Forms\Controls\ToolStrips\ToolStripPanel.FeedbackRectangle.cs (1)
37
_dropDown.
Visible
= value;
System.Windows.Forms.Design (2)
System\Windows\Forms\Design\ToolStripDropDownDesigner.cs (1)
361
_dropDown.
Visible
= false;
System\Windows\Forms\Design\ToolStripTemplateNode.cs (1)
400
_addItemButton.DropDown.
Visible
= false;
System.Windows.Forms.Tests (8)
System\Windows\Forms\AccessibleObjects\ToolStripDropDownItemAccessibleObjectTests.cs (2)
64
control.DropDown.
Visible
= visible;
98
control.DropDown.
Visible
= true;
System\Windows\Forms\ToolStripDropDownTests.cs (4)
2827
Visible
= visible
2870
Visible
= visible
3151
Visible
= false
4971
control.
Visible
= true;
System\Windows\Forms\ToolStripTests.cs (2)
7235
toolStrip.
Visible
= true;
7243
toolStrip.
Visible
= true;
89 references to Visible
System.Windows.Forms (29)
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (1)
1998
|| !OverflowButton.DropDown.
Visible
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDown.cs (6)
1134
|| (dismissingItem is ToolStripSplitButton && !dismissingItem.DropDown.
Visible
) // clicking on the split button button dismisses
1358
if (AutoClose &&
Visible
& ToolStripManager.IsMenuKey(keyData))
1414
if (
Visible
)
1420
if (
Visible
)
1644
if (
Visible
)
1909
if (
Visible
)
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDownButton.cs (1)
134
if (DropDown.
Visible
)
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDownItem.cs (7)
186
if (HasDropDownItems && DropDown.
Visible
)
277
return DropDown.OwnerItem == this && DropDown.
Visible
;
414
if (_dropDown is not null && _dropDown.
Visible
)
433
if (_dropDown is not null && _dropDown.
Visible
)
445
if (DropDown.
Visible
)
697
if (_dropDown is null || (!_dropDown.
Visible
))
706
if (_dropDown is not null && !_dropDown.
Visible
)
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDownItemAccessibleObject.cs (4)
67
=> (VARIANT)!toolStripDropDown.
Visible
,
76
if (_owner.DropDown.
Visible
)
86
return _owner.DropDown.
Visible
? ExpandCollapseState.ExpandCollapseState_Expanded : ExpandCollapseState.ExpandCollapseState_Collapsed;
211
return _owner.DropDown.
Visible
System\Windows\Forms\Controls\ToolStrips\ToolStripMenuItem.cs (1)
867
showDropDown = !DropDown.
Visible
;
System\Windows\Forms\Controls\ToolStrips\ToolStripOverflowButton.ToolStripOverflowButtonAccessibleObject.cs (1)
28
=> _owningToolStripOverflowButton.DropDown.
Visible
System\Windows\Forms\Controls\ToolStrips\ToolStripPanel.FeedbackRectangle.cs (1)
28
return _dropDown.
Visible
;
System\Windows\Forms\Controls\ToolStrips\ToolStripSplitButton.cs (4)
170
protected internal override bool DismissWhenClicked => !DropDown.
Visible
;
181
public bool DropDownButtonPressed => DropDown.
Visible
;
425
if (!DropDown.
Visible
)
452
if (DropDown.
Visible
)
System\Windows\Forms\Controls\ToolStrips\ToolStripSplitButton.ToolStripSplitButtonExAccessibleObject.cs (2)
64
if (_owningToolStripSplitButton is not null && _owningToolStripSplitButton.DropDown is not null && _owningToolStripSplitButton.DropDown.
Visible
)
74
return _owningToolStripSplitButton.DropDown.
Visible
? ExpandCollapseState.ExpandCollapseState_Expanded : ExpandCollapseState.ExpandCollapseState_Collapsed;
System\Windows\Forms\MDI\MdiControlStrip.SystemMenuItem.cs (1)
30
if (HasDropDownItems && DropDown.
Visible
)
System.Windows.Forms.Design (28)
System\ComponentModel\Design\CollectionEditor.SplitButton.cs (1)
176
if (ContextMenuStrip is not {
Visible
: true })
System\ComponentModel\Design\DesignerActionUI.cs (2)
571
get => (_designerActionHost is not null && _designerActionHost.
Visible
);
750
if (_designerActionHost is not null && _designerActionHost.Handle != 0 && _designerActionHost.
Visible
)
System\ComponentModel\Design\DesignerActionUI.DesignerActionToolStripDropDown.cs (1)
160
if (
Visible
)
System\Windows\Forms\Design\TemplateNodeCustomMenuItemCollection.cs (1)
136
if (parent is ToolStripDropDown parentDropDown && parentDropDown.
Visible
)
System\Windows\Forms\Design\ToolStripDesigner.cs (7)
756
if (ToolStrip.CanOverflow && !ToolStrip.OverflowButton.DropDown.
Visible
)
767
if (ToolStrip.OverflowButton.DropDown.
Visible
)
1019
if (ToolStrip.CanOverflow && !ToolStrip.OverflowButton.DropDown.
Visible
)
1199
if (ToolStrip.OverflowButton.DropDown.
Visible
)
2091
if (dropDown.
Visible
)
2315
if (ToolStrip.OverflowButton.DropDown.
Visible
)
2348
if (!DontCloseOverflow && ToolStrip.OverflowButton.DropDown.
Visible
)
System\Windows\Forms\Design\ToolStripDropDownDesigner.cs (3)
428
if (comp is null && _dropDown.
Visible
)
460
if (parent is not null && parent.
Visible
)
531
if (!_dropDown.
Visible
)
System\Windows\Forms\Design\ToolStripItemDesigner.cs (1)
176
if (strip.OverflowButton.DropDown.
Visible
)
System\Windows\Forms\Design\ToolStripKeyboardHandlingService.cs (4)
536
else if (!parentItem.DropDown.
Visible
&& Host.GetDesigner(parentItem) is ToolStripMenuItemDesigner designer)
640
if (parent is ToolStripDropDown parentDropDown && parentDropDown.
Visible
)
652
if (selSvc.PrimarySelection is ToolStripDropDownItem dropDownItem && dropDownItem.DropDown.
Visible
)
1260
if (!dropDownItem.DropDown.
Visible
System\Windows\Forms\Design\ToolStripMenuItemDesigner.cs (8)
1100
if (dropDown.
Visible
)
1178
if (dropDown is not null && dropDown.
Visible
)
1433
if (item.DropDown.
Visible
)
2104
if (!IsOnContextMenu && MenuItem.DropDown.
Visible
)
2224
if (MenuItem.DropDown.
Visible
)
2418
if (item.DropDown.
Visible
)
2562
if (currentSelection is not null && !currentSelection.DropDown.
Visible
)
2569
else if (currentDropDown is ContextMenuStrip && !currentDropDown.
Visible
)
System.Windows.Forms.Tests (32)
System\Windows\Forms\ControlTests.Methods.cs (2)
12590
Assert.False(menu.
Visible
);
12670
Assert.False(menu.
Visible
);
System\Windows\Forms\ToolStripDropDownTests.cs (26)
155
Assert.False(control.
Visible
);
3049
Assert.False(control.
Visible
);
3065
Assert.False(control.
Visible
);
3077
Assert.False(control.
Visible
);
3106
Assert.False(control.
Visible
);
3123
Assert.False(control.
Visible
);
3136
Assert.False(control.
Visible
);
3162
Assert.False(control.
Visible
);
3178
Assert.False(control.
Visible
);
3190
Assert.False(control.
Visible
);
3222
Assert.False(control.
Visible
);
3246
Assert.False(control.
Visible
);
3266
Assert.False(control.
Visible
);
3293
Assert.False(control.
Visible
);
3309
Assert.False(control.
Visible
);
3321
Assert.False(control.
Visible
);
3387
Assert.False(control.
Visible
);
3404
Assert.False(control.
Visible
);
3417
Assert.False(control.
Visible
);
3450
Assert.False(control.
Visible
);
3463
Assert.False(control.
Visible
);
3495
Assert.False(control.
Visible
);
3519
Assert.False(control.
Visible
);
3539
Assert.False(control.
Visible
);
3542
Assert.False(control.
Visible
);
4982
control.
Visible
.Should().BeFalse();
System\Windows\Forms\WebBrowserTests.cs (2)
4559
Assert.False(menu.
Visible
);
4639
Assert.False(menu.
Visible
);
TextBoxBaseTests.cs (2)
7014
Assert.False(menu.
Visible
);
7101
Assert.False(menu.
Visible
);