30 references to NotInherited
System.ComponentModel.TypeConverter (1)
System\ComponentModel\InheritanceAttribute.cs (1)
38
public static readonly InheritanceAttribute NotInherited = new InheritanceAttribute(InheritanceLevel.
NotInherited
);
System.Windows.Forms (1)
System\Windows\Forms\DataBinding\Binding.cs (1)
496
if (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)
1004
if (TypeDescriptorHelper.TryGetAttribute(component, out InheritanceAttribute? ia) && ia.InheritanceLevel != InheritanceLevel.
NotInherited
)
System\ComponentModel\Design\Serialization\ComponentCodeDomSerializer.cs (4)
118
InheritanceLevel inheritanceLevel = InheritanceLevel.
NotInherited
;
175
if (inheritanceLevel == InheritanceLevel.
NotInherited
)
215
if (inheritanceLevel == InheritanceLevel.
NotInherited
)
239
if (inheritanceLevel == InheritanceLevel.
NotInherited
)
System\Windows\Forms\Design\ComponentTray.cs (2)
731
if (attr.InheritanceLevel != InheritanceLevel.
NotInherited
)
1511
if (attr.InheritanceLevel != InheritanceLevel.
NotInherited
&& _inheritanceUI is not null)
System\Windows\Forms\Design\ControlCodeDomSerializer.cs (2)
102
&& inheritanceAttribute.InheritanceLevel != InheritanceLevel.
NotInherited
)
161
InheritanceLevel inheritanceLevel = InheritanceLevel.
NotInherited
;
System\Windows\Forms\Design\InheritanceUI.cs (1)
54
Debug.Assert(level != InheritanceLevel.
NotInherited
, "This should only be called for inherited components.");
System\Windows\Forms\Design\ToolStripActionList.cs (1)
37
if (!TypeDescriptorHelper.TryGetAttribute(_toolStrip, out InheritanceAttribute? ia) || ia.InheritanceLevel == InheritanceLevel.
NotInherited
)
System\Windows\Forms\Design\ToolStripDesigner.cs (1)
179
if (ia is null || ia.InheritanceLevel == InheritanceLevel.
NotInherited
)
System.Windows.Forms.Design.Tests (15)
System\ComponentModel\Design\ArrayEditorTests.cs (2)
74
yield return new object[] { new InheritanceAttribute(InheritanceLevel.
NotInherited
), true };
75
yield return new object[] { new InheritanceAttribute(InheritanceLevel.
NotInherited
+ 1), false };
System\ComponentModel\Design\CollectionEditorTests.cs (2)
76
yield return new object[] { new InheritanceAttribute(InheritanceLevel.
NotInherited
), true };
77
yield return new object[] { new InheritanceAttribute(InheritanceLevel.
NotInherited
+ 1), false };
System\ComponentModel\Design\CollectionFormTests.cs (2)
470
yield return new object[] { new InheritanceAttribute(InheritanceLevel.
NotInherited
), true };
471
yield return new object[] { new InheritanceAttribute(InheritanceLevel.
NotInherited
+ 1), false };
System\ComponentModel\Design\DesignerHostTests.cs (4)
394
TypeDescriptor.AddAttributes(notInheritedComponent, new InheritanceAttribute(InheritanceLevel.
NotInherited
));
465
TypeDescriptor.AddAttributes(notInheritedComponent, new InheritanceAttribute(InheritanceLevel.
NotInherited
));
2585
TypeDescriptor.AddAttributes(notInheritedComponent, new InheritanceAttribute(InheritanceLevel.
NotInherited
));
2655
TypeDescriptor.AddAttributes(notInheritedComponent, new InheritanceAttribute(InheritanceLevel.
NotInherited
));
System\ComponentModel\Design\SiteNestedContainerTests.cs (4)
298
TypeDescriptor.AddAttributes(notInheritedComponent, new InheritanceAttribute(InheritanceLevel.
NotInherited
));
374
TypeDescriptor.AddAttributes(notInheritedComponent, new InheritanceAttribute(InheritanceLevel.
NotInherited
));
721
TypeDescriptor.AddAttributes(notInheritedComponent, new InheritanceAttribute(InheritanceLevel.
NotInherited
));
786
TypeDescriptor.AddAttributes(notInheritedComponent, new InheritanceAttribute(InheritanceLevel.
NotInherited
));
System\Windows\Forms\Design\InheritanceUITests.cs (1)
42
[InlineData(InheritanceLevel.
NotInherited
, "Inherited control")]