30 references to NotInherited
System.ComponentModel.TypeConverter (1)
System\ComponentModel\InheritanceAttribute.cs (1)
38public static readonly InheritanceAttribute NotInherited = new InheritanceAttribute(InheritanceLevel.NotInherited);
System.Windows.Forms (1)
System\Windows\Forms\DataBinding\Binding.cs (1)
496if (attr is not null && attr.InheritanceLevel != InheritanceLevel.NotInherited)
System.Windows.Forms.Design (13)
System\ComponentModel\Design\CollectionEditor.cs (1)
62&& attribute.InheritanceLevel != InheritanceLevel.NotInherited)
System\ComponentModel\Design\DesignerHost.cs (1)
1004if (TypeDescriptorHelper.TryGetAttribute(component, out InheritanceAttribute? ia) && ia.InheritanceLevel != InheritanceLevel.NotInherited)
System\ComponentModel\Design\Serialization\ComponentCodeDomSerializer.cs (4)
118InheritanceLevel inheritanceLevel = InheritanceLevel.NotInherited; 175if (inheritanceLevel == InheritanceLevel.NotInherited) 215if (inheritanceLevel == InheritanceLevel.NotInherited) 239if (inheritanceLevel == InheritanceLevel.NotInherited)
System\Windows\Forms\Design\ComponentTray.cs (2)
731if (attr.InheritanceLevel != InheritanceLevel.NotInherited) 1511if (attr.InheritanceLevel != InheritanceLevel.NotInherited && _inheritanceUI is not null)
System\Windows\Forms\Design\ControlCodeDomSerializer.cs (2)
102&& inheritanceAttribute.InheritanceLevel != InheritanceLevel.NotInherited) 161InheritanceLevel inheritanceLevel = InheritanceLevel.NotInherited;
System\Windows\Forms\Design\InheritanceUI.cs (1)
54Debug.Assert(level != InheritanceLevel.NotInherited, "This should only be called for inherited components.");
System\Windows\Forms\Design\ToolStripActionList.cs (1)
37if (!TypeDescriptorHelper.TryGetAttribute(_toolStrip, out InheritanceAttribute? ia) || ia.InheritanceLevel == InheritanceLevel.NotInherited)
System\Windows\Forms\Design\ToolStripDesigner.cs (1)
179if (ia is null || ia.InheritanceLevel == InheritanceLevel.NotInherited)
System.Windows.Forms.Design.Tests (15)
System\ComponentModel\Design\ArrayEditorTests.cs (2)
70yield return new object[] { new InheritanceAttribute(InheritanceLevel.NotInherited), true }; 71yield return new object[] { new InheritanceAttribute(InheritanceLevel.NotInherited + 1), false };
System\ComponentModel\Design\CollectionEditorTests.cs (2)
80yield return new object[] { new InheritanceAttribute(InheritanceLevel.NotInherited), true }; 81yield return new object[] { new InheritanceAttribute(InheritanceLevel.NotInherited + 1), false };
System\ComponentModel\Design\CollectionFormTests.cs (2)
468yield return new object[] { new InheritanceAttribute(InheritanceLevel.NotInherited), true }; 469yield return new object[] { new InheritanceAttribute(InheritanceLevel.NotInherited + 1), false };
System\ComponentModel\Design\DesignerHostTests.cs (4)
392TypeDescriptor.AddAttributes(notInheritedComponent, new InheritanceAttribute(InheritanceLevel.NotInherited)); 463TypeDescriptor.AddAttributes(notInheritedComponent, new InheritanceAttribute(InheritanceLevel.NotInherited)); 2583TypeDescriptor.AddAttributes(notInheritedComponent, new InheritanceAttribute(InheritanceLevel.NotInherited)); 2653TypeDescriptor.AddAttributes(notInheritedComponent, new InheritanceAttribute(InheritanceLevel.NotInherited));
System\ComponentModel\Design\SiteNestedContainerTests.cs (4)
296TypeDescriptor.AddAttributes(notInheritedComponent, new InheritanceAttribute(InheritanceLevel.NotInherited)); 372TypeDescriptor.AddAttributes(notInheritedComponent, new InheritanceAttribute(InheritanceLevel.NotInherited)); 719TypeDescriptor.AddAttributes(notInheritedComponent, new InheritanceAttribute(InheritanceLevel.NotInherited)); 784TypeDescriptor.AddAttributes(notInheritedComponent, new InheritanceAttribute(InheritanceLevel.NotInherited));
System\Windows\Forms\Design\InheritanceUITests.cs (1)
42[InlineData(InheritanceLevel.NotInherited, "Inherited control")]