60 references to InheritedReadOnly
System.Windows.Forms (3)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\GridEntry.cs (1)
371forceReadOnly |= TypeDescriptor.GetAttributes(value).Contains(InheritanceAttribute.InheritedReadOnly);
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\MultiSelectRootGridEntry.cs (1)
45|| TypeDescriptor.GetAttributes(target).Contains(InheritanceAttribute.InheritedReadOnly))
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\SingleSelectRootGridEntry.cs (1)
128|| TypeDescriptor.GetAttributes(Target).Contains(InheritanceAttribute.InheritedReadOnly))
System.Windows.Forms.Design (48)
System\ComponentModel\Design\CollectionEditor.cs (1)
319&& inheritanceService.GetInheritanceAttribute(component).Equals(InheritanceAttribute.InheritedReadOnly))
System\ComponentModel\Design\ComponentDesigner.cs (3)
406bool readOnlyInherit = inheritanceAttribute is not null && inheritanceAttribute.Equals(InheritanceAttribute.InheritedReadOnly); 628if (inheritanceAttribute is null || !inheritanceAttribute.Equals(InheritanceAttribute.InheritedReadOnly)) 656bool readOnlyInherit = InheritanceAttribute.InheritedReadOnly.Equals(InheritanceAttribute);
System\ComponentModel\Design\DesignerActionUI.cs (1)
172if (attribute == InheritanceAttribute.InheritedReadOnly)
System\ComponentModel\Design\DesignerHost.cs (1)
234&& !TypeDescriptor.GetAttributes(extenderComponent).Contains(InheritanceAttribute.InheritedReadOnly)
System\ComponentModel\Design\InheritanceService.cs (2)
177attr = InheritanceAttribute.InheritedReadOnly; 264_inheritedComponents[ce.Component!] = InheritanceAttribute.InheritedReadOnly;
System\ComponentModel\Design\MenuCommandService.cs (1)
200!TypeDescriptor.GetAttributes(selectedComponent).Contains(InheritanceAttribute.InheritedReadOnly))
System\ComponentModel\Design\Serialization\CollectionCodeDomSerializer.cs (1)
411if (o is IComponent && TypeDescriptor.GetAttributes(o).Contains(InheritanceAttribute.InheritedReadOnly))
System\Windows\Forms\Design\ControlCodeDomSerializer.cs (1)
243if (TypeDescriptor.GetAttributes(component).Contains(InheritanceAttribute.InheritedReadOnly))
System\Windows\Forms\Design\ControlCommandSet.cs (1)
1320!TypeDescriptor.GetAttributes(obj)[typeof(InheritanceAttribute)].Equals(InheritanceAttribute.InheritedReadOnly))
System\Windows\Forms\Design\ControlDesigner.cs (1)
745if (Locked || (InheritanceAttribute == InheritanceAttribute.InheritedReadOnly))
System\Windows\Forms\Design\DataGridViewDesigner.cs (2)
159|| (base.InheritanceAttribute == InheritanceAttribute.InheritedReadOnly)) 161return InheritanceAttribute.InheritedReadOnly;
System\Windows\Forms\Design\DocumentDesigner.cs (1)
1384if (!InvokeGetInheritanceAttribute(designer).Equals(InheritanceAttribute.InheritedReadOnly))
System\Windows\Forms\Design\FlowLayoutPanelDesigner .cs (3)
80TypeDescriptor.AddAttributes(child, InheritanceAttribute.InheritedReadOnly); 363|| (base.InheritanceAttribute == InheritanceAttribute.InheritedReadOnly)) 365return InheritanceAttribute.InheritedReadOnly;
System\Windows\Forms\Design\OleDragDropHandler.cs (1)
478if (!attr.Equals(InheritanceAttribute.NotInherited) && !attr.Equals(InheritanceAttribute.InheritedReadOnly))
System\Windows\Forms\Design\ParentControlDesigner.cs (8)
1038InheritanceAttribute != InheritanceAttribute.InheritedReadOnly && selectionType != GlyphSelectionType.NotSelected) 1526if (attr is not null && !attr.Equals(InheritanceAttribute.NotInherited) && !attr.Equals(InheritanceAttribute.InheritedReadOnly)) 1555if (InheritanceAttribute == InheritanceAttribute.InheritedReadOnly && draggedControl.Parent != Control) 1626if (InheritanceAttribute == InheritanceAttribute.InheritedReadOnly) 1713if (!InheritanceAttribute.Equals(InheritanceAttribute.InheritedReadOnly)) 2071if (_toolboxService is null || !_toolboxService.SetCursor() || InheritanceAttribute.Equals(InheritanceAttribute.InheritedReadOnly)) 2158if (inheritanceAttribute is not null && inheritanceAttribute == InheritanceAttribute.InheritedReadOnly) 2463return (!InheritanceAttribute.Equals(InheritanceAttribute.InheritedReadOnly));
System\Windows\Forms\Design\SplitContainerDesigner.cs (3)
189protected override bool GetHitTest(Point point) => !(InheritanceAttribute == InheritanceAttribute.InheritedReadOnly) && _splitContainerSelected; 304if (InheritanceAttribute == InheritanceAttribute.InheritedReadOnly || _splitterDistanceException) 347if (InheritanceAttribute == InheritanceAttribute.InheritedReadOnly)
System\Windows\Forms\Design\SplitterPanelDesigner.cs (4)
52if (InheritanceAttribute == InheritanceAttribute.InheritedReadOnly) 63if (InheritanceAttribute == InheritanceAttribute.InheritedReadOnly) 74if (InheritanceAttribute == InheritanceAttribute.InheritedReadOnly) 84if (InheritanceAttribute == InheritanceAttribute.InheritedReadOnly)
System\Windows\Forms\Design\TableLayoutPanelDesigner.cs (6)
1071if (selectionType != GlyphSelectionType.NotSelected && !locked && InheritanceAttribute != InheritanceAttribute.InheritedReadOnly) 1179if (InheritanceAttribute == InheritanceAttribute.InheritedReadOnly) 1183TypeDescriptor.AddAttributes(Control.Controls[i], InheritanceAttribute.InheritedReadOnly); 1190|| (base.InheritanceAttribute == InheritanceAttribute.InheritedReadOnly) 1191? InheritanceAttribute.InheritedReadOnly 1591bool enabled = (selCount == 1) && (InheritanceAttribute != InheritanceAttribute.InheritedReadOnly);
System\Windows\Forms\Design\ToolStripDesigner.cs (4)
319return InheritanceAttribute.InheritedReadOnly; 1227if (InheritanceAttribute != InheritanceAttribute.InheritedReadOnly) 1365if ((SelectionRules & SelectionRules.Moveable) != 0 && InheritanceAttribute != InheritanceAttribute.InheritedReadOnly && (selType != GlyphSelectionType.NotSelected)) 2113|| InheritanceAttribute.Equals(InheritanceAttribute.InheritedReadOnly))
System\Windows\Forms\Design\ToolStripDropDownDesigner.cs (1)
116return InheritanceAttribute.InheritedReadOnly;
System\Windows\Forms\Design\ToolStripItemDesigner.cs (1)
125return InheritanceAttribute.InheritedReadOnly;
System\Windows\Forms\Design\ToolStripPanelDesigner.cs (1)
94? InheritanceAttribute.InheritedReadOnly
System.Windows.Forms.Design.Tests (9)
System\ComponentModel\Design\ComponentDesignerTests.cs (9)
285yield return new object[] { InheritanceAttribute.InheritedReadOnly, true }; 2386yield return new object[] { InheritanceAttribute.InheritedReadOnly, null, null }; 2387yield return new object[] { InheritanceAttribute.InheritedReadOnly, new Dictionary<Type, object>(), InheritanceAttribute.InheritedReadOnly }; 2425yield return new object[] { InheritanceAttribute.InheritedReadOnly, true }; 2459yield return new object[] { InheritanceAttribute.InheritedReadOnly, null, null }; 2460yield return new object[] { InheritanceAttribute.InheritedReadOnly, new Dictionary<string, object>(), new Dictionary<string, object>() }; 2477using CustomInheritanceAttributeComponentDesigner designer = new(InheritanceAttribute.InheritedReadOnly); 2904CustomInheritanceAttributeComponentDesigner designer = new(InheritanceAttribute.InheritedReadOnly);