2 writes to InheritanceLevel
System.ComponentModel.TypeConverter (2)
System\ComponentModel\InheritanceAttribute.cs (2)
54
InheritanceLevel
= Default.InheritanceLevel;
64
InheritanceLevel
= inheritanceLevel;
35 references to InheritanceLevel
System.ComponentModel.TypeConverter (5)
System\ComponentModel\Container.cs (1)
233
if (inheritanceAttribute.
InheritanceLevel
!= InheritanceLevel.InheritedReadOnly)
System\ComponentModel\InheritanceAttribute.cs (4)
54
InheritanceLevel = Default.
InheritanceLevel
;
92
InheritanceLevel valueLevel = ((InheritanceAttribute)value).
InheritanceLevel
;
93
return (valueLevel ==
InheritanceLevel
);
109
public override string ToString() => TypeDescriptor.GetConverterTrimUnsafe(typeof(InheritanceLevel)).ConvertToString(
InheritanceLevel
)!;
System.Windows.Forms (1)
System\Windows\Forms\DataBinding\Binding.cs (1)
496
if (attr is not null && attr.
InheritanceLevel
!= InheritanceLevel.NotInherited)
System.Windows.Forms.Design (29)
System\ComponentModel\Design\CollectionEditor.cs (1)
62
&& attribute.
InheritanceLevel
!= InheritanceLevel.NotInherited)
System\ComponentModel\Design\ComponentDesigner.cs (1)
69
=> InheritanceAttribute!.
InheritanceLevel
== InheritanceLevel.InheritedReadOnly;
System\ComponentModel\Design\DesignerHost.cs (1)
1004
if (TypeDescriptorHelper.TryGetAttribute(component, out InheritanceAttribute? ia) && ia.
InheritanceLevel
!= InheritanceLevel.NotInherited)
System\ComponentModel\Design\Serialization\CollectionCodeDomSerializer.cs (2)
493
genCode = ia.
InheritanceLevel
!= InheritanceLevel.InheritedReadOnly;
575
genCode = ia.
InheritanceLevel
!= InheritanceLevel.InheritedReadOnly;
System\ComponentModel\Design\Serialization\ComponentCodeDomSerializer.cs (1)
122
inheritanceLevel = inheritanceAttribute.
InheritanceLevel
;
System\ComponentModel\Design\Serialization\ResourcePropertyMemberCodeDomSerializer.cs (1)
115
if (inheritance.
InheritanceLevel
!= InheritanceLevel.InheritedReadOnly)
System\ComponentModel\Design\ToolStripContainerActionList.cs (1)
164
|| inheritanceAttribute.
InheritanceLevel
== InheritanceLevel.InheritedReadOnly)
System\Windows\Forms\Design\CommandSet.cs (1)
3087
if (attr.
InheritanceLevel
== InheritanceLevel.InheritedReadOnly)
System\Windows\Forms\Design\ComponentTray.cs (3)
731
if (attr.
InheritanceLevel
!= InheritanceLevel.NotInherited)
734
iui?.AddInheritedControl(trayctl, attr.
InheritanceLevel
);
1511
if (attr.
InheritanceLevel
!= InheritanceLevel.NotInherited && _inheritanceUI is not null)
System\Windows\Forms\Design\ControlCodeDomSerializer.cs (4)
102
&& inheritanceAttribute.
InheritanceLevel
!= InheritanceLevel.NotInherited)
133
&& inheritanceAttribute.
InheritanceLevel
!= InheritanceLevel.InheritedReadOnly)
165
inheritanceLevel = inheritanceAttribute.
InheritanceLevel
;
430
if (inheritanceAttribute.
InheritanceLevel
== InheritanceLevel.InheritedReadOnly)
System\Windows\Forms\Design\ControlDesigner.cs (1)
976
_inheritanceUI?.AddInheritedControl(Control, InheritanceAttribute.
InheritanceLevel
);
System\Windows\Forms\Design\TableLayoutControlCollectionCodeDomSerializer.cs (3)
34
isTargetInherited = TypeDescriptorHelper.TryGetAttribute(comp, out InheritanceAttribute? ia) && ia.
InheritanceLevel
== InheritanceLevel.Inherited;
45
if (ia.
InheritanceLevel
== InheritanceLevel.InheritedReadOnly)
47
else if (ia.
InheritanceLevel
== InheritanceLevel.Inherited && isTargetInherited)
System\Windows\Forms\Design\TableLayoutPanelCodeDomSerializer.cs (1)
46
if (!TypeDescriptorHelper.TryGetAttribute(panel, out InheritanceAttribute? ia) || ia.
InheritanceLevel
!= InheritanceLevel.InheritedReadOnly)
System\Windows\Forms\Design\ToolStripActionList.cs (2)
37
if (!TypeDescriptorHelper.TryGetAttribute(_toolStrip, out InheritanceAttribute? ia) || ia.
InheritanceLevel
== InheritanceLevel.NotInherited)
49
|| ia.
InheritanceLevel
== InheritanceLevel.InheritedReadOnly;
System\Windows\Forms\Design\ToolStripCodeDomSerializer.cs (1)
28
if (TypeDescriptorHelper.TryGetAttribute(item, out InheritanceAttribute? ia) && ia.
InheritanceLevel
!= InheritanceLevel.InheritedReadOnly)
System\Windows\Forms\Design\ToolStripDesigner.cs (1)
179
if (ia is null || ia.
InheritanceLevel
== InheritanceLevel.NotInherited)
System\Windows\Forms\Design\ToolStripKeyboardHandlingService.cs (4)
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))