36 references to AddAttributes
System.Windows.Forms.Design (6)
System\Windows\Forms\Design\FlowLayoutPanelDesigner .cs (1)
80
TypeDescriptor.
AddAttributes
(child, InheritanceAttribute.InheritedReadOnly);
System\Windows\Forms\Design\TableLayoutPanelDesigner.cs (1)
1183
TypeDescriptor.
AddAttributes
(Control.Controls[i], InheritanceAttribute.InheritedReadOnly);
System\Windows\Forms\Design\ToolStripContainerDesigner.cs (4)
379
TypeDescriptor.
AddAttributes
(_bottomToolStripPanel, bottomToolboxBitmapAttribute, new DescriptionAttribute("bottom"));
380
TypeDescriptor.
AddAttributes
(_rightToolStripPanel, rightToolboxBitmapAttribute, new DescriptionAttribute("right"));
381
TypeDescriptor.
AddAttributes
(_leftToolStripPanel, leftToolboxBitmapAttribute, new DescriptionAttribute("left"));
382
TypeDescriptor.
AddAttributes
(_topToolStripPanel, topToolboxBitmapAttribute, new DescriptionAttribute("top"));
System.Windows.Forms.Design.Tests (30)
ControlDesignerTests.cs (2)
333
TypeDescriptor.
AddAttributes
(_designer._control, new DockingAttribute(dockingBehavior));
354
TypeDescriptor.
AddAttributes
(_designer._control, new DockingAttribute(DockingBehavior.AutoDock));
System\ComponentModel\Design\ArrayEditorTests.cs (1)
79
TypeDescriptor.
AddAttributes
(component, attribute);
System\ComponentModel\Design\CollectionEditorTests.cs (1)
89
TypeDescriptor.
AddAttributes
(component, attribute);
System\ComponentModel\Design\CollectionFormTests.cs (1)
477
TypeDescriptor.
AddAttributes
(component, attribute);
System\ComponentModel\Design\DesignerHostTests.cs (12)
384
TypeDescriptor.
AddAttributes
(readOnlyComponent, new InheritanceAttribute(InheritanceLevel.InheritedReadOnly));
388
TypeDescriptor.
AddAttributes
(inheritedComponent, new InheritanceAttribute(InheritanceLevel.Inherited));
392
TypeDescriptor.
AddAttributes
(notInheritedComponent, new InheritanceAttribute(InheritanceLevel.NotInherited));
455
TypeDescriptor.
AddAttributes
(readOnlyComponent, new InheritanceAttribute(InheritanceLevel.InheritedReadOnly));
459
TypeDescriptor.
AddAttributes
(inheritedComponent, new InheritanceAttribute(InheritanceLevel.Inherited));
463
TypeDescriptor.
AddAttributes
(notInheritedComponent, new InheritanceAttribute(InheritanceLevel.NotInherited));
2575
TypeDescriptor.
AddAttributes
(readOnlyComponent, new InheritanceAttribute(InheritanceLevel.InheritedReadOnly));
2579
TypeDescriptor.
AddAttributes
(inheritedComponent, new InheritanceAttribute(InheritanceLevel.Inherited));
2583
TypeDescriptor.
AddAttributes
(notInheritedComponent, new InheritanceAttribute(InheritanceLevel.NotInherited));
2645
TypeDescriptor.
AddAttributes
(readOnlyComponent, new InheritanceAttribute(InheritanceLevel.InheritedReadOnly));
2649
TypeDescriptor.
AddAttributes
(inheritedComponent, new InheritanceAttribute(InheritanceLevel.Inherited));
2653
TypeDescriptor.
AddAttributes
(notInheritedComponent, new InheritanceAttribute(InheritanceLevel.NotInherited));
System\ComponentModel\Design\SiteNestedContainerTests.cs (12)
288
TypeDescriptor.
AddAttributes
(readOnlyComponent, new InheritanceAttribute(InheritanceLevel.InheritedReadOnly));
292
TypeDescriptor.
AddAttributes
(inheritedComponent, new InheritanceAttribute(InheritanceLevel.Inherited));
296
TypeDescriptor.
AddAttributes
(notInheritedComponent, new InheritanceAttribute(InheritanceLevel.NotInherited));
364
TypeDescriptor.
AddAttributes
(readOnlyComponent, new InheritanceAttribute(InheritanceLevel.InheritedReadOnly));
368
TypeDescriptor.
AddAttributes
(inheritedComponent, new InheritanceAttribute(InheritanceLevel.Inherited));
372
TypeDescriptor.
AddAttributes
(notInheritedComponent, new InheritanceAttribute(InheritanceLevel.NotInherited));
711
TypeDescriptor.
AddAttributes
(readOnlyComponent, new InheritanceAttribute(InheritanceLevel.InheritedReadOnly));
715
TypeDescriptor.
AddAttributes
(inheritedComponent, new InheritanceAttribute(InheritanceLevel.Inherited));
719
TypeDescriptor.
AddAttributes
(notInheritedComponent, new InheritanceAttribute(InheritanceLevel.NotInherited));
776
TypeDescriptor.
AddAttributes
(readOnlyComponent, new InheritanceAttribute(InheritanceLevel.InheritedReadOnly));
780
TypeDescriptor.
AddAttributes
(inheritedComponent, new InheritanceAttribute(InheritanceLevel.Inherited));
784
TypeDescriptor.
AddAttributes
(notInheritedComponent, new InheritanceAttribute(InheritanceLevel.NotInherited));
System\Windows\Forms\Design\ToolStripActionListTests.cs (1)
121
TypeDescriptor.
AddAttributes
(_toolStrip, new InheritanceAttribute(InheritanceLevel.InheritedReadOnly));