3 instantiations of InheritanceAttribute
System (3)
compmod\system\componentmodel\design\InheritanceAttribute.cs (3)
28public static readonly InheritanceAttribute Inherited = new InheritanceAttribute(InheritanceLevel.Inherited); 37public static readonly InheritanceAttribute InheritedReadOnly = new InheritanceAttribute(InheritanceLevel.InheritedReadOnly); 45public static readonly InheritanceAttribute NotInherited = new InheritanceAttribute(InheritanceLevel.NotInherited);
17 references to InheritanceAttribute
System (11)
compmod\system\componentmodel\Container.cs (3)
251InheritanceAttribute inheritanceAttribute = (InheritanceAttribute)TypeDescriptor.GetAttributes(s.Component)[typeof(InheritanceAttribute)];
compmod\system\componentmodel\design\IInheritanceService.cs (2)
33/// value <see cref='System.ComponentModel.InheritanceAttribute.NotInherited'/>. 37InheritanceAttribute GetInheritanceAttribute(IComponent component);
compmod\system\componentmodel\design\InheritanceAttribute.cs (6)
28public static readonly InheritanceAttribute Inherited = new InheritanceAttribute(InheritanceLevel.Inherited); 37public static readonly InheritanceAttribute InheritedReadOnly = new InheritanceAttribute(InheritanceLevel.InheritedReadOnly); 45public static readonly InheritanceAttribute NotInherited = new InheritanceAttribute(InheritanceLevel.NotInherited); 53public static readonly InheritanceAttribute Default = NotInherited; 94if (!(value is InheritanceAttribute)) { 98InheritanceLevel valueLevel = ((InheritanceAttribute)value).InheritanceLevel;
System.Windows.Forms (6)
winforms\Managed\System\WinForms\Binding.cs (3)
527InheritanceAttribute attr = (InheritanceAttribute)TypeDescriptor.GetAttributes(control)[typeof(InheritanceAttribute)];
winforms\Managed\System\WinForms\PropertyGridInternal\GridEntry.cs (1)
490forceReadOnly |= TypeDescriptor.GetAttributes(value).Contains(InheritanceAttribute.InheritedReadOnly);
winforms\Managed\System\WinForms\PropertyGridInternal\MultiSelectRootGridEntry.cs (1)
40if ((readOnlyAttr != null && !readOnlyAttr.IsDefaultAttribute()) || TypeDescriptor.GetAttributes(obj).Contains(InheritanceAttribute.InheritedReadOnly)) {
winforms\Managed\System\WinForms\PropertyGridInternal\SingleSelectRootGridEntry.cs (1)
158if ((readOnlyAttr != null && !readOnlyAttr.IsDefaultAttribute()) || TypeDescriptor.GetAttributes(this.objValue).Contains(InheritanceAttribute.InheritedReadOnly)) {