18 instantiations of ToolStripItemDesignerAvailability
System.Windows.Forms (11)
System\Windows\Forms\Controls\ToolStrips\ToolStripButton.cs (1)
10[ToolStripItemDesignerAvailability(ToolStripItemDesignerAvailability.ToolStrip)]
System\Windows\Forms\Controls\ToolStrips\ToolStripComboBox.cs (1)
11[ToolStripItemDesignerAvailability(ToolStripItemDesignerAvailability.MenuStrip | ToolStripItemDesignerAvailability.ToolStrip | ToolStripItemDesignerAvailability.ContextMenuStrip)]
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDownButton.cs (1)
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 (1)
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 (1)
10[ToolStripItemDesignerAvailability(ToolStripItemDesignerAvailability.ToolStrip | ToolStripItemDesignerAvailability.ContextMenuStrip)]
System\Windows\Forms\Controls\ToolStrips\ToolStripSplitButton.cs (1)
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 (1)
13[ToolStripItemDesignerAvailability(ToolStripItemDesignerAvailability.MenuStrip | ToolStripItemDesignerAvailability.ToolStrip | ToolStripItemDesignerAvailability.ContextMenuStrip)]
System\Windows\Forms\Design\ToolStripItemDesignerAvailabilityAttribute.cs (1)
9public static readonly ToolStripItemDesignerAvailabilityAttribute Default = new();
System.Windows.Forms.Tests (7)
System\Windows\Forms\Design\ToolStripItemDesignerAvailabilityAttributeTests.cs (7)
12ToolStripItemDesignerAvailabilityAttribute attribute = new(); 22ToolStripItemDesignerAvailabilityAttribute attribute = new(visibility); 37yield return new object[] { new ToolStripItemDesignerAvailabilityAttribute(), true }; 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 };
13 references to ToolStripItemDesignerAvailability
System.Windows.Forms (2)
System\Windows\Forms\Design\ToolStripItemDesignerAvailabilityAttribute.cs (2)
9public static readonly ToolStripItemDesignerAvailabilityAttribute Default = new(); 33return obj is ToolStripItemDesignerAvailabilityAttribute other && other.ItemAdditionVisibility == ItemAdditionVisibility;
System.Windows.Forms.Design (3)
System\Windows\Forms\Design\ToolStripDesignerUtils.cs (3)
286ToolStripItemDesignerAvailabilityAttribute visibilityAttribute = (ToolStripItemDesignerAvailabilityAttribute)TypeDescriptor.GetAttributes(t)[typeof(ToolStripItemDesignerAvailabilityAttribute)];
System.Windows.Forms.Tests (8)
System\Windows\Forms\Design\ToolStripItemDesignerAvailabilityAttributeTests.cs (8)
12ToolStripItemDesignerAvailabilityAttribute attribute = new(); 22ToolStripItemDesignerAvailabilityAttribute attribute = new(visibility); 29ToolStripItemDesignerAvailabilityAttribute attribute = ToolStripItemDesignerAvailabilityAttribute.Default; 30Assert.Same(attribute, ToolStripItemDesignerAvailabilityAttribute.Default); 43public void ToolStripItemDesignerAvailabilityAttribute_IsDefaultAttribute_Invoke_ReturnsExpected(ToolStripItemDesignerAvailabilityAttribute attribute, bool expected) 50ToolStripItemDesignerAvailabilityAttribute attribute = new(ToolStripItemDesignerAvailability.All); 61public void ToolStripItemDesignerAvailabilityAttribute_Equals_Invoke_ReturnsExpected(ToolStripItemDesignerAvailabilityAttribute attribute, object obj, bool expected)