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