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)
70
yield return new object[] { new InheritanceAttribute(InheritanceLevel.
NotInherited
), true };
71
yield return new object[] { new InheritanceAttribute(InheritanceLevel.
NotInherited
+ 1), false };
System\ComponentModel\Design\CollectionEditorTests.cs (2)
80
yield return new object[] { new InheritanceAttribute(InheritanceLevel.
NotInherited
), true };
81
yield return new object[] { new InheritanceAttribute(InheritanceLevel.
NotInherited
+ 1), false };
System\ComponentModel\Design\CollectionFormTests.cs (2)
468
yield return new object[] { new InheritanceAttribute(InheritanceLevel.
NotInherited
), true };
469
yield return new object[] { new InheritanceAttribute(InheritanceLevel.
NotInherited
+ 1), false };
System\ComponentModel\Design\DesignerHostTests.cs (4)
392
TypeDescriptor.AddAttributes(notInheritedComponent, new InheritanceAttribute(InheritanceLevel.
NotInherited
));
463
TypeDescriptor.AddAttributes(notInheritedComponent, new InheritanceAttribute(InheritanceLevel.
NotInherited
));
2583
TypeDescriptor.AddAttributes(notInheritedComponent, new InheritanceAttribute(InheritanceLevel.
NotInherited
));
2653
TypeDescriptor.AddAttributes(notInheritedComponent, new InheritanceAttribute(InheritanceLevel.
NotInherited
));
System\ComponentModel\Design\SiteNestedContainerTests.cs (4)
296
TypeDescriptor.AddAttributes(notInheritedComponent, new InheritanceAttribute(InheritanceLevel.
NotInherited
));
372
TypeDescriptor.AddAttributes(notInheritedComponent, new InheritanceAttribute(InheritanceLevel.
NotInherited
));
719
TypeDescriptor.AddAttributes(notInheritedComponent, new InheritanceAttribute(InheritanceLevel.
NotInherited
));
784
TypeDescriptor.AddAttributes(notInheritedComponent, new InheritanceAttribute(InheritanceLevel.
NotInherited
));
System\Windows\Forms\Design\InheritanceUITests.cs (1)
42
[InlineData(InheritanceLevel.
NotInherited
, "Inherited control")]