48 references to InheritanceLevel
netstandard (1)
netstandard.cs (1)
340[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.ComponentModel.InheritanceLevel))]
System (1)
src\runtime\src\libraries\shims\System\ref\System.cs (1)
326[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.ComponentModel.InheritanceLevel))]
System.ComponentModel.TypeConverter (8)
System\ComponentModel\Container.cs (1)
235if (inheritanceAttribute.InheritanceLevel != InheritanceLevel.InheritedReadOnly)
System\ComponentModel\InheritanceAttribute.cs (7)
21public static readonly InheritanceAttribute Inherited = new InheritanceAttribute(InheritanceLevel.Inherited); 30public static readonly InheritanceAttribute InheritedReadOnly = new InheritanceAttribute(InheritanceLevel.InheritedReadOnly); 38public static readonly InheritanceAttribute NotInherited = new InheritanceAttribute(InheritanceLevel.NotInherited); 62public InheritanceAttribute(InheritanceLevel inheritanceLevel) 73public InheritanceLevel InheritanceLevel { get; } 92InheritanceLevel valueLevel = ((InheritanceAttribute)value).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 (37)
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)
994if (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 (6)
118InheritanceLevel inheritanceLevel = InheritanceLevel.NotInherited; 127if (inheritanceLevel != InheritanceLevel.InheritedReadOnly) 175if (inheritanceLevel == InheritanceLevel.NotInherited) 215if (inheritanceLevel == InheritanceLevel.NotInherited) 239if (inheritanceLevel == InheritanceLevel.NotInherited)
System\ComponentModel\Design\Serialization\ResourcePropertyMemberCodeDomSerializer.cs (1)
111if (inheritance.InheritanceLevel != InheritanceLevel.InheritedReadOnly)
System\ComponentModel\Design\ToolStripContainerActionList.cs (1)
161|| inheritanceAttribute.InheritanceLevel == InheritanceLevel.InheritedReadOnly)
System\Windows\Forms\Design\CommandSet.cs (1)
3082if (attr.InheritanceLevel == InheritanceLevel.InheritedReadOnly)
System\Windows\Forms\Design\ComponentTray.cs (2)
725if (attr.InheritanceLevel != InheritanceLevel.NotInherited) 1496if (attr.InheritanceLevel != InheritanceLevel.NotInherited && _inheritanceUI is not null)
System\Windows\Forms\Design\ControlCodeDomSerializer.cs (6)
102&& inheritanceAttribute.InheritanceLevel != InheritanceLevel.NotInherited) 133&& inheritanceAttribute.InheritanceLevel != InheritanceLevel.InheritedReadOnly) 161InheritanceLevel inheritanceLevel = InheritanceLevel.NotInherited; 168if (inheritanceLevel != InheritanceLevel.InheritedReadOnly) 430if (inheritanceAttribute.InheritanceLevel == InheritanceLevel.InheritedReadOnly)
System\Windows\Forms\Design\InheritanceUI.cs (3)
47public void AddInheritedControl(Control c, InheritanceLevel level) 54Debug.Assert(level != InheritanceLevel.NotInherited, "This should only be called for inherited components."); 56if (level == InheritanceLevel.InheritedReadOnly)
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)
181return inheritanceAttribute is null || inheritanceAttribute.InheritanceLevel == InheritanceLevel.NotInherited;
System\Windows\Forms\Design\ToolStripKeyboardHandlingService.cs (4)
1089if (ia is not null && (ia.InheritanceLevel == InheritanceLevel.Inherited || ia.InheritanceLevel == InheritanceLevel.InheritedReadOnly)) 1117if (ia is not null && (ia.InheritanceLevel == InheritanceLevel.Inherited || ia.InheritanceLevel == InheritanceLevel.InheritedReadOnly))