44 references to InheritanceAttribute
System.ComponentModel.TypeConverter (3)
System\ComponentModel\InheritanceAttribute.cs (3)
21
public static readonly InheritanceAttribute Inherited = new
InheritanceAttribute
(InheritanceLevel.Inherited);
30
public static readonly InheritanceAttribute InheritedReadOnly = new
InheritanceAttribute
(InheritanceLevel.InheritedReadOnly);
38
public static readonly InheritanceAttribute NotInherited = new
InheritanceAttribute
(InheritanceLevel.NotInherited);
System.Windows.Forms.Design.Tests (41)
System\ComponentModel\Design\ArrayEditorTests.cs (5)
71
yield return new object[] { new
InheritanceAttribute
(InheritanceLevel.Inherited - 1), false };
72
yield return new object[] { new
InheritanceAttribute
(InheritanceLevel.Inherited), false };
73
yield return new object[] { new
InheritanceAttribute
(InheritanceLevel.InheritedReadOnly), false };
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 (5)
73
yield return new object[] { new
InheritanceAttribute
(InheritanceLevel.Inherited - 1), false };
74
yield return new object[] { new
InheritanceAttribute
(InheritanceLevel.Inherited), false };
75
yield return new object[] { new
InheritanceAttribute
(InheritanceLevel.InheritedReadOnly), false };
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 (5)
467
yield return new object[] { new
InheritanceAttribute
(InheritanceLevel.Inherited - 1), false };
468
yield return new object[] { new
InheritanceAttribute
(InheritanceLevel.Inherited), false };
469
yield return new object[] { new
InheritanceAttribute
(InheritanceLevel.InheritedReadOnly), false };
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 (12)
386
TypeDescriptor.AddAttributes(readOnlyComponent, new
InheritanceAttribute
(InheritanceLevel.InheritedReadOnly));
390
TypeDescriptor.AddAttributes(inheritedComponent, new
InheritanceAttribute
(InheritanceLevel.Inherited));
394
TypeDescriptor.AddAttributes(notInheritedComponent, new
InheritanceAttribute
(InheritanceLevel.NotInherited));
457
TypeDescriptor.AddAttributes(readOnlyComponent, new
InheritanceAttribute
(InheritanceLevel.InheritedReadOnly));
461
TypeDescriptor.AddAttributes(inheritedComponent, new
InheritanceAttribute
(InheritanceLevel.Inherited));
465
TypeDescriptor.AddAttributes(notInheritedComponent, new
InheritanceAttribute
(InheritanceLevel.NotInherited));
2577
TypeDescriptor.AddAttributes(readOnlyComponent, new
InheritanceAttribute
(InheritanceLevel.InheritedReadOnly));
2581
TypeDescriptor.AddAttributes(inheritedComponent, new
InheritanceAttribute
(InheritanceLevel.Inherited));
2585
TypeDescriptor.AddAttributes(notInheritedComponent, new
InheritanceAttribute
(InheritanceLevel.NotInherited));
2647
TypeDescriptor.AddAttributes(readOnlyComponent, new
InheritanceAttribute
(InheritanceLevel.InheritedReadOnly));
2651
TypeDescriptor.AddAttributes(inheritedComponent, new
InheritanceAttribute
(InheritanceLevel.Inherited));
2655
TypeDescriptor.AddAttributes(notInheritedComponent, new
InheritanceAttribute
(InheritanceLevel.NotInherited));
System\ComponentModel\Design\SiteNestedContainerTests.cs (12)
290
TypeDescriptor.AddAttributes(readOnlyComponent, new
InheritanceAttribute
(InheritanceLevel.InheritedReadOnly));
294
TypeDescriptor.AddAttributes(inheritedComponent, new
InheritanceAttribute
(InheritanceLevel.Inherited));
298
TypeDescriptor.AddAttributes(notInheritedComponent, new
InheritanceAttribute
(InheritanceLevel.NotInherited));
366
TypeDescriptor.AddAttributes(readOnlyComponent, new
InheritanceAttribute
(InheritanceLevel.InheritedReadOnly));
370
TypeDescriptor.AddAttributes(inheritedComponent, new
InheritanceAttribute
(InheritanceLevel.Inherited));
374
TypeDescriptor.AddAttributes(notInheritedComponent, new
InheritanceAttribute
(InheritanceLevel.NotInherited));
713
TypeDescriptor.AddAttributes(readOnlyComponent, new
InheritanceAttribute
(InheritanceLevel.InheritedReadOnly));
717
TypeDescriptor.AddAttributes(inheritedComponent, new
InheritanceAttribute
(InheritanceLevel.Inherited));
721
TypeDescriptor.AddAttributes(notInheritedComponent, new
InheritanceAttribute
(InheritanceLevel.NotInherited));
778
TypeDescriptor.AddAttributes(readOnlyComponent, new
InheritanceAttribute
(InheritanceLevel.InheritedReadOnly));
782
TypeDescriptor.AddAttributes(inheritedComponent, new
InheritanceAttribute
(InheritanceLevel.Inherited));
786
TypeDescriptor.AddAttributes(notInheritedComponent, new
InheritanceAttribute
(InheritanceLevel.NotInherited));
System\Windows\Forms\Design\ToolStripActionListTests.cs (1)
119
TypeDescriptor.AddAttributes(_toolStrip, new
InheritanceAttribute
(InheritanceLevel.InheritedReadOnly));
System\Windows\Forms\Design\ToolStripContainerActionListTests.cs (1)
77
TypeDescriptor.AddAttributes(inheritedControl, new
InheritanceAttribute
(InheritanceLevel.InheritedReadOnly));