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)
74yield return new object[] { new InheritanceAttribute(InheritanceLevel.NotInherited), true }; 75yield return new object[] { new InheritanceAttribute(InheritanceLevel.NotInherited + 1), false };
System\ComponentModel\Design\CollectionEditorTests.cs (2)
76yield return new object[] { new InheritanceAttribute(InheritanceLevel.NotInherited), true }; 77yield return new object[] { new InheritanceAttribute(InheritanceLevel.NotInherited + 1), false };
System\ComponentModel\Design\CollectionFormTests.cs (2)
470yield return new object[] { new InheritanceAttribute(InheritanceLevel.NotInherited), true }; 471yield return new object[] { new InheritanceAttribute(InheritanceLevel.NotInherited + 1), false };
System\ComponentModel\Design\DesignerHostTests.cs (4)
394TypeDescriptor.AddAttributes(notInheritedComponent, new InheritanceAttribute(InheritanceLevel.NotInherited)); 465TypeDescriptor.AddAttributes(notInheritedComponent, new InheritanceAttribute(InheritanceLevel.NotInherited)); 2585TypeDescriptor.AddAttributes(notInheritedComponent, new InheritanceAttribute(InheritanceLevel.NotInherited)); 2655TypeDescriptor.AddAttributes(notInheritedComponent, new InheritanceAttribute(InheritanceLevel.NotInherited));
System\ComponentModel\Design\SiteNestedContainerTests.cs (4)
298TypeDescriptor.AddAttributes(notInheritedComponent, new InheritanceAttribute(InheritanceLevel.NotInherited)); 374TypeDescriptor.AddAttributes(notInheritedComponent, new InheritanceAttribute(InheritanceLevel.NotInherited)); 721TypeDescriptor.AddAttributes(notInheritedComponent, new InheritanceAttribute(InheritanceLevel.NotInherited)); 786TypeDescriptor.AddAttributes(notInheritedComponent, new InheritanceAttribute(InheritanceLevel.NotInherited));
System\Windows\Forms\Design\InheritanceUITests.cs (1)
42[InlineData(InheritanceLevel.NotInherited, "Inherited control")]