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)
19
public ToolStripItemDesignerAvailabilityAttribute(
ToolStripItemDesignerAvailability
visibility)
24
public
ToolStripItemDesignerAvailability
ItemAdditionVisibility { get; } =
ToolStripItemDesignerAvailability
.None;
System.Windows.Forms.Design (9)
System\Windows\Forms\Design\ToolStripDesignerUtils.cs (9)
212
private static
ToolStripItemDesignerAvailability
GetDesignerVisibility(ToolStrip toolStrip)
214
ToolStripItemDesignerAvailability
visibility;
217
visibility =
ToolStripItemDesignerAvailability
.StatusStrip;
221
visibility =
ToolStripItemDesignerAvailability
.MenuStrip;
225
visibility =
ToolStripItemDesignerAvailability
.ContextMenuStrip;
229
visibility =
ToolStripItemDesignerAvailability
.ToolStrip;
254
ToolStripItemDesignerAvailability
currentToolStripVisibility = GetDesignerVisibility(toolStrip);
255
Debug.Assert(currentToolStripVisibility !=
ToolStripItemDesignerAvailability
.None, "Why is GetDesignerVisibility returning None?");
258
if (currentToolStripVisibility !=
ToolStripItemDesignerAvailability
.None)
System.Windows.Forms.Tests (10)
System\Windows\Forms\Design\ToolStripItemDesignerAvailabilityAttributeTests.cs (10)
13
Assert.Equal(
ToolStripItemDesignerAvailability
.None, attribute.ItemAdditionVisibility);
18
[EnumData<
ToolStripItemDesignerAvailability
>]
19
[InvalidEnumData<
ToolStripItemDesignerAvailability
>]
20
public void ToolStripItemDesignerAvailabilityAttribute_Ctor_ToolStripItemDesignerAvailability(
ToolStripItemDesignerAvailability
visibility)
31
Assert.Equal(
ToolStripItemDesignerAvailability
.None, attribute.ItemAdditionVisibility);
38
yield return new object[] { new ToolStripItemDesignerAvailabilityAttribute(
ToolStripItemDesignerAvailability
.All), false };
50
ToolStripItemDesignerAvailabilityAttribute attribute = new(
ToolStripItemDesignerAvailability
.All);
52
yield return new object[] { attribute, new ToolStripItemDesignerAvailabilityAttribute(
ToolStripItemDesignerAvailability
.All), true };
53
yield return new object[] { attribute, new ToolStripItemDesignerAvailabilityAttribute(
ToolStripItemDesignerAvailability
.None), false };
63
if (obj is
ToolStripItemDesignerAvailability
other)