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)
71
yield return new object[] { new InheritanceAttribute(InheritanceLevel.
Inherited
- 1), false };
72
yield return new object[] { new InheritanceAttribute(InheritanceLevel.
Inherited
), false };
System\ComponentModel\Design\CollectionEditorTests.cs (2)
73
yield return new object[] { new InheritanceAttribute(InheritanceLevel.
Inherited
- 1), false };
74
yield return new object[] { new InheritanceAttribute(InheritanceLevel.
Inherited
), false };
System\ComponentModel\Design\CollectionFormTests.cs (2)
467
yield return new object[] { new InheritanceAttribute(InheritanceLevel.
Inherited
- 1), false };
468
yield return new object[] { new InheritanceAttribute(InheritanceLevel.
Inherited
), false };
System\ComponentModel\Design\DesignerHostTests.cs (4)
390
TypeDescriptor.AddAttributes(inheritedComponent, new InheritanceAttribute(InheritanceLevel.
Inherited
));
461
TypeDescriptor.AddAttributes(inheritedComponent, new InheritanceAttribute(InheritanceLevel.
Inherited
));
2581
TypeDescriptor.AddAttributes(inheritedComponent, new InheritanceAttribute(InheritanceLevel.
Inherited
));
2651
TypeDescriptor.AddAttributes(inheritedComponent, new InheritanceAttribute(InheritanceLevel.
Inherited
));
System\ComponentModel\Design\SiteNestedContainerTests.cs (4)
294
TypeDescriptor.AddAttributes(inheritedComponent, new InheritanceAttribute(InheritanceLevel.
Inherited
));
370
TypeDescriptor.AddAttributes(inheritedComponent, new InheritanceAttribute(InheritanceLevel.
Inherited
));
717
TypeDescriptor.AddAttributes(inheritedComponent, new InheritanceAttribute(InheritanceLevel.
Inherited
));
782
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
);
102
[InlineData(InheritanceLevel.
Inherited
, "Inherited control")]
118
_inheritanceUI.AddInheritedControl(_control, InheritanceLevel.
Inherited
);
150
_inheritanceUI.AddInheritedControl(_control, InheritanceLevel.
Inherited
);