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)
331
TypeDescriptor.
AddAttributes
(_designer._control, new DockingAttribute(dockingBehavior));
352
TypeDescriptor.
AddAttributes
(_designer._control, new DockingAttribute(DockingBehavior.AutoDock));
System\ComponentModel\Design\ArrayEditorTests.cs (1)
83
TypeDescriptor.
AddAttributes
(component, attribute);
System\ComponentModel\Design\CollectionEditorTests.cs (1)
85
TypeDescriptor.
AddAttributes
(component, attribute);
System\ComponentModel\Design\CollectionFormTests.cs (1)
479
TypeDescriptor.
AddAttributes
(component, attribute);
System\ComponentModel\Design\DesignerHostTests.cs (12)
386
TypeDescriptor.
AddAttributes
(readOnlyComponent, new InheritanceAttribute(InheritanceLevel.InheritedReadOnly));
390
TypeDescriptor.
AddAttributes
(inheritedComponent, new InheritanceAttribute(InheritanceLevel.Inherited));
394
TypeDescriptor.
AddAttributes
(notInheritedComponent, new InheritanceAttribute(InheritanceLevel.NotInherited));
457
TypeDescriptor.
AddAttributes
(readOnlyComponent, new InheritanceAttribute(InheritanceLevel.InheritedReadOnly));
461
TypeDescriptor.
AddAttributes
(inheritedComponent, new InheritanceAttribute(InheritanceLevel.Inherited));
465
TypeDescriptor.
AddAttributes
(notInheritedComponent, new InheritanceAttribute(InheritanceLevel.NotInherited));
2577
TypeDescriptor.
AddAttributes
(readOnlyComponent, new InheritanceAttribute(InheritanceLevel.InheritedReadOnly));
2581
TypeDescriptor.
AddAttributes
(inheritedComponent, new InheritanceAttribute(InheritanceLevel.Inherited));
2585
TypeDescriptor.
AddAttributes
(notInheritedComponent, new InheritanceAttribute(InheritanceLevel.NotInherited));
2647
TypeDescriptor.
AddAttributes
(readOnlyComponent, new InheritanceAttribute(InheritanceLevel.InheritedReadOnly));
2651
TypeDescriptor.
AddAttributes
(inheritedComponent, new InheritanceAttribute(InheritanceLevel.Inherited));
2655
TypeDescriptor.
AddAttributes
(notInheritedComponent, new InheritanceAttribute(InheritanceLevel.NotInherited));
System\ComponentModel\Design\SiteNestedContainerTests.cs (12)
290
TypeDescriptor.
AddAttributes
(readOnlyComponent, new InheritanceAttribute(InheritanceLevel.InheritedReadOnly));
294
TypeDescriptor.
AddAttributes
(inheritedComponent, new InheritanceAttribute(InheritanceLevel.Inherited));
298
TypeDescriptor.
AddAttributes
(notInheritedComponent, new InheritanceAttribute(InheritanceLevel.NotInherited));
366
TypeDescriptor.
AddAttributes
(readOnlyComponent, new InheritanceAttribute(InheritanceLevel.InheritedReadOnly));
370
TypeDescriptor.
AddAttributes
(inheritedComponent, new InheritanceAttribute(InheritanceLevel.Inherited));
374
TypeDescriptor.
AddAttributes
(notInheritedComponent, new InheritanceAttribute(InheritanceLevel.NotInherited));
713
TypeDescriptor.
AddAttributes
(readOnlyComponent, new InheritanceAttribute(InheritanceLevel.InheritedReadOnly));
717
TypeDescriptor.
AddAttributes
(inheritedComponent, new InheritanceAttribute(InheritanceLevel.Inherited));
721
TypeDescriptor.
AddAttributes
(notInheritedComponent, new InheritanceAttribute(InheritanceLevel.NotInherited));
778
TypeDescriptor.
AddAttributes
(readOnlyComponent, new InheritanceAttribute(InheritanceLevel.InheritedReadOnly));
782
TypeDescriptor.
AddAttributes
(inheritedComponent, new InheritanceAttribute(InheritanceLevel.Inherited));
786
TypeDescriptor.
AddAttributes
(notInheritedComponent, new InheritanceAttribute(InheritanceLevel.NotInherited));
System\Windows\Forms\Design\ToolStripActionListTests.cs (1)
119
TypeDescriptor.
AddAttributes
(_toolStrip, new InheritanceAttribute(InheritanceLevel.InheritedReadOnly));