43 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 (40)
System\ComponentModel\Design\ArrayEditorTests.cs (5)
67
yield return new object[] { new
InheritanceAttribute
(InheritanceLevel.Inherited - 1), false };
68
yield return new object[] { new
InheritanceAttribute
(InheritanceLevel.Inherited), false };
69
yield return new object[] { new
InheritanceAttribute
(InheritanceLevel.InheritedReadOnly), false };
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 (5)
77
yield return new object[] { new
InheritanceAttribute
(InheritanceLevel.Inherited - 1), false };
78
yield return new object[] { new
InheritanceAttribute
(InheritanceLevel.Inherited), false };
79
yield return new object[] { new
InheritanceAttribute
(InheritanceLevel.InheritedReadOnly), false };
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 (5)
465
yield return new object[] { new
InheritanceAttribute
(InheritanceLevel.Inherited - 1), false };
466
yield return new object[] { new
InheritanceAttribute
(InheritanceLevel.Inherited), false };
467
yield return new object[] { new
InheritanceAttribute
(InheritanceLevel.InheritedReadOnly), false };
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 (12)
384
TypeDescriptor.AddAttributes(readOnlyComponent, new
InheritanceAttribute
(InheritanceLevel.InheritedReadOnly));
388
TypeDescriptor.AddAttributes(inheritedComponent, new
InheritanceAttribute
(InheritanceLevel.Inherited));
392
TypeDescriptor.AddAttributes(notInheritedComponent, new
InheritanceAttribute
(InheritanceLevel.NotInherited));
455
TypeDescriptor.AddAttributes(readOnlyComponent, new
InheritanceAttribute
(InheritanceLevel.InheritedReadOnly));
459
TypeDescriptor.AddAttributes(inheritedComponent, new
InheritanceAttribute
(InheritanceLevel.Inherited));
463
TypeDescriptor.AddAttributes(notInheritedComponent, new
InheritanceAttribute
(InheritanceLevel.NotInherited));
2575
TypeDescriptor.AddAttributes(readOnlyComponent, new
InheritanceAttribute
(InheritanceLevel.InheritedReadOnly));
2579
TypeDescriptor.AddAttributes(inheritedComponent, new
InheritanceAttribute
(InheritanceLevel.Inherited));
2583
TypeDescriptor.AddAttributes(notInheritedComponent, new
InheritanceAttribute
(InheritanceLevel.NotInherited));
2645
TypeDescriptor.AddAttributes(readOnlyComponent, new
InheritanceAttribute
(InheritanceLevel.InheritedReadOnly));
2649
TypeDescriptor.AddAttributes(inheritedComponent, new
InheritanceAttribute
(InheritanceLevel.Inherited));
2653
TypeDescriptor.AddAttributes(notInheritedComponent, new
InheritanceAttribute
(InheritanceLevel.NotInherited));
System\ComponentModel\Design\SiteNestedContainerTests.cs (12)
288
TypeDescriptor.AddAttributes(readOnlyComponent, new
InheritanceAttribute
(InheritanceLevel.InheritedReadOnly));
292
TypeDescriptor.AddAttributes(inheritedComponent, new
InheritanceAttribute
(InheritanceLevel.Inherited));
296
TypeDescriptor.AddAttributes(notInheritedComponent, new
InheritanceAttribute
(InheritanceLevel.NotInherited));
364
TypeDescriptor.AddAttributes(readOnlyComponent, new
InheritanceAttribute
(InheritanceLevel.InheritedReadOnly));
368
TypeDescriptor.AddAttributes(inheritedComponent, new
InheritanceAttribute
(InheritanceLevel.Inherited));
372
TypeDescriptor.AddAttributes(notInheritedComponent, new
InheritanceAttribute
(InheritanceLevel.NotInherited));
711
TypeDescriptor.AddAttributes(readOnlyComponent, new
InheritanceAttribute
(InheritanceLevel.InheritedReadOnly));
715
TypeDescriptor.AddAttributes(inheritedComponent, new
InheritanceAttribute
(InheritanceLevel.Inherited));
719
TypeDescriptor.AddAttributes(notInheritedComponent, new
InheritanceAttribute
(InheritanceLevel.NotInherited));
776
TypeDescriptor.AddAttributes(readOnlyComponent, new
InheritanceAttribute
(InheritanceLevel.InheritedReadOnly));
780
TypeDescriptor.AddAttributes(inheritedComponent, new
InheritanceAttribute
(InheritanceLevel.Inherited));
784
TypeDescriptor.AddAttributes(notInheritedComponent, new
InheritanceAttribute
(InheritanceLevel.NotInherited));
System\Windows\Forms\Design\ToolStripActionListTests.cs (1)
121
TypeDescriptor.AddAttributes(_toolStrip, new
InheritanceAttribute
(InheritanceLevel.InheritedReadOnly));