40 references to ToolStripItemDesignerAvailability
System.Windows.Forms (21)
System\Windows\Forms\Controls\ToolStrips\ToolStripButton.cs (1)
10[ToolStripItemDesignerAvailability(ToolStripItemDesignerAvailability.ToolStrip)]
System\Windows\Forms\Controls\ToolStrips\ToolStripComboBox.cs (3)
11[ToolStripItemDesignerAvailability(ToolStripItemDesignerAvailability.MenuStrip | ToolStripItemDesignerAvailability.ToolStrip | ToolStripItemDesignerAvailability.ContextMenuStrip)]
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDownButton.cs (2)
14[ToolStripItemDesignerAvailability(ToolStripItemDesignerAvailability.ToolStrip | ToolStripItemDesignerAvailability.StatusStrip)]
System\Windows\Forms\Controls\ToolStrips\ToolStripLabel.cs (1)
13[ToolStripItemDesignerAvailability(ToolStripItemDesignerAvailability.ToolStrip)]
System\Windows\Forms\Controls\ToolStrips\ToolStripMenuItem.cs (2)
17[ToolStripItemDesignerAvailability(ToolStripItemDesignerAvailability.MenuStrip | ToolStripItemDesignerAvailability.ContextMenuStrip)]
System\Windows\Forms\Controls\ToolStrips\ToolStripOverflowButton.cs (1)
10[ToolStripItemDesignerAvailability(ToolStripItemDesignerAvailability.None)]
System\Windows\Forms\Controls\ToolStrips\ToolStripSeparator.cs (2)
10[ToolStripItemDesignerAvailability(ToolStripItemDesignerAvailability.ToolStrip | ToolStripItemDesignerAvailability.ContextMenuStrip)]
System\Windows\Forms\Controls\ToolStrips\ToolStripSplitButton.cs (2)
11[ToolStripItemDesignerAvailability(ToolStripItemDesignerAvailability.ToolStrip | ToolStripItemDesignerAvailability.StatusStrip)]
System\Windows\Forms\Controls\ToolStrips\ToolStripStatusLabel.cs (1)
15[ToolStripItemDesignerAvailability(ToolStripItemDesignerAvailability.StatusStrip)]
System\Windows\Forms\Controls\ToolStrips\ToolStripTextBox.cs (3)
13[ToolStripItemDesignerAvailability(ToolStripItemDesignerAvailability.MenuStrip | ToolStripItemDesignerAvailability.ToolStrip | ToolStripItemDesignerAvailability.ContextMenuStrip)]
System\Windows\Forms\Design\ToolStripItemDesignerAvailabilityAttribute.cs (3)
19public ToolStripItemDesignerAvailabilityAttribute(ToolStripItemDesignerAvailability visibility) 24public ToolStripItemDesignerAvailability ItemAdditionVisibility { get; } = ToolStripItemDesignerAvailability.None;
System.Windows.Forms.Design (9)
System\Windows\Forms\Design\ToolStripDesignerUtils.cs (9)
212private static ToolStripItemDesignerAvailability GetDesignerVisibility(ToolStrip toolStrip) 214ToolStripItemDesignerAvailability visibility; 217visibility = ToolStripItemDesignerAvailability.StatusStrip; 221visibility = ToolStripItemDesignerAvailability.MenuStrip; 225visibility = ToolStripItemDesignerAvailability.ContextMenuStrip; 229visibility = ToolStripItemDesignerAvailability.ToolStrip; 254ToolStripItemDesignerAvailability currentToolStripVisibility = GetDesignerVisibility(toolStrip); 255Debug.Assert(currentToolStripVisibility != ToolStripItemDesignerAvailability.None, "Why is GetDesignerVisibility returning None?"); 258if (currentToolStripVisibility != ToolStripItemDesignerAvailability.None)
System.Windows.Forms.Tests (10)
System\Windows\Forms\Design\ToolStripItemDesignerAvailabilityAttributeTests.cs (10)
13Assert.Equal(ToolStripItemDesignerAvailability.None, attribute.ItemAdditionVisibility); 18[EnumData<ToolStripItemDesignerAvailability>] 19[InvalidEnumData<ToolStripItemDesignerAvailability>] 20public void ToolStripItemDesignerAvailabilityAttribute_Ctor_ToolStripItemDesignerAvailability(ToolStripItemDesignerAvailability visibility) 31Assert.Equal(ToolStripItemDesignerAvailability.None, attribute.ItemAdditionVisibility); 38yield return new object[] { new ToolStripItemDesignerAvailabilityAttribute(ToolStripItemDesignerAvailability.All), false }; 50ToolStripItemDesignerAvailabilityAttribute attribute = new(ToolStripItemDesignerAvailability.All); 52yield return new object[] { attribute, new ToolStripItemDesignerAvailabilityAttribute(ToolStripItemDesignerAvailability.All), true }; 53yield return new object[] { attribute, new ToolStripItemDesignerAvailabilityAttribute(ToolStripItemDesignerAvailability.None), false }; 63if (obj is ToolStripItemDesignerAvailability other)