24 references to Inherited
System.ComponentModel.TypeConverter (1)
System\ComponentModel\InheritanceAttribute.cs (1)
21public static readonly InheritanceAttribute Inherited = new InheritanceAttribute(InheritanceLevel.Inherited);
System.Windows.Forms.Design (4)
System\Windows\Forms\Design\TableLayoutControlCollectionCodeDomSerializer.cs (2)
34isTargetInherited = TypeDescriptorHelper.TryGetAttribute(comp, out InheritanceAttribute? ia) && ia.InheritanceLevel == InheritanceLevel.Inherited; 47else if (ia.InheritanceLevel == InheritanceLevel.Inherited && isTargetInherited)
System\Windows\Forms\Design\ToolStripKeyboardHandlingService.cs (2)
1101if (ia is not null && (ia.InheritanceLevel == InheritanceLevel.Inherited || ia.InheritanceLevel == InheritanceLevel.InheritedReadOnly)) 1129if (ia is not null && (ia.InheritanceLevel == InheritanceLevel.Inherited || ia.InheritanceLevel == InheritanceLevel.InheritedReadOnly))
System.Windows.Forms.Design.Tests (19)
System\ComponentModel\Design\ArrayEditorTests.cs (2)
67yield return new object[] { new InheritanceAttribute(InheritanceLevel.Inherited - 1), false }; 68yield return new object[] { new InheritanceAttribute(InheritanceLevel.Inherited), false };
System\ComponentModel\Design\CollectionEditorTests.cs (2)
77yield return new object[] { new InheritanceAttribute(InheritanceLevel.Inherited - 1), false }; 78yield return new object[] { new InheritanceAttribute(InheritanceLevel.Inherited), false };
System\ComponentModel\Design\CollectionFormTests.cs (2)
465yield return new object[] { new InheritanceAttribute(InheritanceLevel.Inherited - 1), false }; 466yield return new object[] { new InheritanceAttribute(InheritanceLevel.Inherited), false };
System\ComponentModel\Design\DesignerHostTests.cs (4)
388TypeDescriptor.AddAttributes(inheritedComponent, new InheritanceAttribute(InheritanceLevel.Inherited)); 459TypeDescriptor.AddAttributes(inheritedComponent, new InheritanceAttribute(InheritanceLevel.Inherited)); 2579TypeDescriptor.AddAttributes(inheritedComponent, new InheritanceAttribute(InheritanceLevel.Inherited)); 2649TypeDescriptor.AddAttributes(inheritedComponent, new InheritanceAttribute(InheritanceLevel.Inherited));
System\ComponentModel\Design\SiteNestedContainerTests.cs (4)
292TypeDescriptor.AddAttributes(inheritedComponent, new InheritanceAttribute(InheritanceLevel.Inherited)); 368TypeDescriptor.AddAttributes(inheritedComponent, new InheritanceAttribute(InheritanceLevel.Inherited)); 715TypeDescriptor.AddAttributes(inheritedComponent, new InheritanceAttribute(InheritanceLevel.Inherited)); 780TypeDescriptor.AddAttributes(inheritedComponent, new InheritanceAttribute(InheritanceLevel.Inherited));
System\Windows\Forms\Design\InheritanceUITests.cs (5)
40[InlineData(InheritanceLevel.Inherited, "Inherited control")] 80_inheritanceUI.AddInheritedControl(trayControl, InheritanceLevel.Inherited); 104[InlineData(InheritanceLevel.Inherited, "Inherited control")] 120_inheritanceUI.AddInheritedControl(_control, InheritanceLevel.Inherited); 152_inheritanceUI.AddInheritedControl(_control, InheritanceLevel.Inherited);