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