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