42 references to InheritanceAttribute
System.ComponentModel.TypeConverter (3)
System\ComponentModel\InheritanceAttribute.cs (3)
21public static readonly InheritanceAttribute Inherited = new InheritanceAttribute(InheritanceLevel.Inherited); 30public static readonly InheritanceAttribute InheritedReadOnly = new InheritanceAttribute(InheritanceLevel.InheritedReadOnly); 38public static readonly InheritanceAttribute NotInherited = new InheritanceAttribute(InheritanceLevel.NotInherited);
System.Windows.Forms.Design.Tests (39)
System\ComponentModel\Design\ArrayEditorTests.cs (5)
67yield return new object[] { new InheritanceAttribute(InheritanceLevel.Inherited - 1), false }; 68yield return new object[] { new InheritanceAttribute(InheritanceLevel.Inherited), false }; 69yield return new object[] { new InheritanceAttribute(InheritanceLevel.InheritedReadOnly), false }; 70yield return new object[] { new InheritanceAttribute(InheritanceLevel.NotInherited), true }; 71yield return new object[] { new InheritanceAttribute(InheritanceLevel.NotInherited + 1), false };
System\ComponentModel\Design\CollectionEditorTests.cs (5)
77yield return new object[] { new InheritanceAttribute(InheritanceLevel.Inherited - 1), false }; 78yield return new object[] { new InheritanceAttribute(InheritanceLevel.Inherited), false }; 79yield return new object[] { new InheritanceAttribute(InheritanceLevel.InheritedReadOnly), false }; 80yield return new object[] { new InheritanceAttribute(InheritanceLevel.NotInherited), true }; 81yield return new object[] { new InheritanceAttribute(InheritanceLevel.NotInherited + 1), false };
System\ComponentModel\Design\CollectionFormTests.cs (5)
465yield return new object[] { new InheritanceAttribute(InheritanceLevel.Inherited - 1), false }; 466yield return new object[] { new InheritanceAttribute(InheritanceLevel.Inherited), false }; 467yield return new object[] { new InheritanceAttribute(InheritanceLevel.InheritedReadOnly), false }; 468yield return new object[] { new InheritanceAttribute(InheritanceLevel.NotInherited), true }; 469yield return new object[] { new InheritanceAttribute(InheritanceLevel.NotInherited + 1), false };
System\ComponentModel\Design\DesignerHostTests.cs (12)
384TypeDescriptor.AddAttributes(readOnlyComponent, new InheritanceAttribute(InheritanceLevel.InheritedReadOnly)); 388TypeDescriptor.AddAttributes(inheritedComponent, new InheritanceAttribute(InheritanceLevel.Inherited)); 392TypeDescriptor.AddAttributes(notInheritedComponent, new InheritanceAttribute(InheritanceLevel.NotInherited)); 455TypeDescriptor.AddAttributes(readOnlyComponent, new InheritanceAttribute(InheritanceLevel.InheritedReadOnly)); 459TypeDescriptor.AddAttributes(inheritedComponent, new InheritanceAttribute(InheritanceLevel.Inherited)); 463TypeDescriptor.AddAttributes(notInheritedComponent, new InheritanceAttribute(InheritanceLevel.NotInherited)); 2576TypeDescriptor.AddAttributes(readOnlyComponent, new InheritanceAttribute(InheritanceLevel.InheritedReadOnly)); 2580TypeDescriptor.AddAttributes(inheritedComponent, new InheritanceAttribute(InheritanceLevel.Inherited)); 2584TypeDescriptor.AddAttributes(notInheritedComponent, new InheritanceAttribute(InheritanceLevel.NotInherited)); 2646TypeDescriptor.AddAttributes(readOnlyComponent, new InheritanceAttribute(InheritanceLevel.InheritedReadOnly)); 2650TypeDescriptor.AddAttributes(inheritedComponent, new InheritanceAttribute(InheritanceLevel.Inherited)); 2654TypeDescriptor.AddAttributes(notInheritedComponent, new InheritanceAttribute(InheritanceLevel.NotInherited));
System\ComponentModel\Design\SiteNestedContainerTests.cs (12)
288TypeDescriptor.AddAttributes(readOnlyComponent, new InheritanceAttribute(InheritanceLevel.InheritedReadOnly)); 292TypeDescriptor.AddAttributes(inheritedComponent, new InheritanceAttribute(InheritanceLevel.Inherited)); 296TypeDescriptor.AddAttributes(notInheritedComponent, new InheritanceAttribute(InheritanceLevel.NotInherited)); 364TypeDescriptor.AddAttributes(readOnlyComponent, new InheritanceAttribute(InheritanceLevel.InheritedReadOnly)); 368TypeDescriptor.AddAttributes(inheritedComponent, new InheritanceAttribute(InheritanceLevel.Inherited)); 372TypeDescriptor.AddAttributes(notInheritedComponent, new InheritanceAttribute(InheritanceLevel.NotInherited)); 711TypeDescriptor.AddAttributes(readOnlyComponent, new InheritanceAttribute(InheritanceLevel.InheritedReadOnly)); 715TypeDescriptor.AddAttributes(inheritedComponent, new InheritanceAttribute(InheritanceLevel.Inherited)); 719TypeDescriptor.AddAttributes(notInheritedComponent, new InheritanceAttribute(InheritanceLevel.NotInherited)); 776TypeDescriptor.AddAttributes(readOnlyComponent, new InheritanceAttribute(InheritanceLevel.InheritedReadOnly)); 780TypeDescriptor.AddAttributes(inheritedComponent, new InheritanceAttribute(InheritanceLevel.Inherited)); 784TypeDescriptor.AddAttributes(notInheritedComponent, new InheritanceAttribute(InheritanceLevel.NotInherited));