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