50 references to GetAttributes
System.ComponentModel.TypeConverter (6)
System\ComponentModel\Container.cs (1)
232InheritanceAttribute inheritanceAttribute = (InheritanceAttribute)TypeDescriptor.GetAttributes(s.Component)[typeof(InheritanceAttribute)]!;
System\ComponentModel\ReflectTypeDescriptionProvider.ReflectedTypeData.cs (4)
196TypeConverterAttribute instanceAttr = (TypeConverterAttribute)TypeDescriptor.GetAttributes(instance)[typeof(TypeConverterAttribute)]!; 255attributes = TypeDescriptor.GetAttributes(instance); 288attributes = TypeDescriptor.GetAttributes(instance); 327EditorAttribute? instanceAttr = GetEditorAttribute(TypeDescriptor.GetAttributes(instance), editorBaseType);
System\ComponentModel\TypeDescriptor.cs (1)
2546AttributeCollection attributes = GetAttributes(component);
System.Windows.Forms (4)
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\DataBinding\Binding.cs (1)
495InheritanceAttribute? attr = (InheritanceAttribute?)TypeDescriptor.GetAttributes(BindableComponent)[typeof(InheritanceAttribute)];
System.Windows.Forms.Design (38)
System\ComponentModel\Design\DesignerActionUI.cs (1)
171InheritanceAttribute? attribute = (InheritanceAttribute?)TypeDescriptor.GetAttributes(comp)[typeof(InheritanceAttribute)];
System\ComponentModel\Design\DesignerHost.cs (1)
234&& !TypeDescriptor.GetAttributes(extenderComponent).Contains(InheritanceAttribute.InheritedReadOnly)
System\ComponentModel\Design\MenuCommandService.cs (1)
200!TypeDescriptor.GetAttributes(selectedComponent).Contains(InheritanceAttribute.InheritedReadOnly))
System\ComponentModel\Design\SelectionService.cs (1)
235HelpKeywordAttribute? contextAttribute = (HelpKeywordAttribute?)TypeDescriptor.GetAttributes(component)[typeof(HelpKeywordAttribute)];
System\ComponentModel\Design\Serialization\CodeDomDesignerLoader.ModifiersExtenderProvider.cs (1)
41if (!TypeDescriptor.GetAttributes(o)[typeof(InheritanceAttribute)]!.Equals(InheritanceAttribute.NotInherited))
System\ComponentModel\Design\Serialization\CodeDomDesignerLoader.ModifiersInheritedExtenderProvider.cs (1)
41AttributeCollection attributes = TypeDescriptor.GetAttributes(o);
System\ComponentModel\Design\Serialization\CodeDomSerializerBase.cs (1)
290return TypeDescriptor.GetAttributes(instance);
System\ComponentModel\Design\Serialization\CollectionCodeDomSerializer.cs (1)
411if (o is IComponent && TypeDescriptor.GetAttributes(o).Contains(InheritanceAttribute.InheritedReadOnly))
System\ComponentModel\Design\ToolStripContainerActionList.cs (1)
163if (TypeDescriptor.GetAttributes(control)?[typeof(InheritanceAttribute)] is not InheritanceAttribute inheritanceAttribute
System\Windows\Forms\Design\CommandSet.cs (3)
2059if ((TypeDescriptor.GetAttributes(curComp).Contains(DesignTimeVisibleAttribute.Yes)) || curComp is ToolStripItem) 2927if (!Equals(TypeDescriptor.GetAttributes(obj)[typeof(InheritanceAttribute)], InheritanceAttribute.NotInherited)) 3085InheritanceAttribute? attr = (InheritanceAttribute?)TypeDescriptor.GetAttributes(primarySelection)[typeof(InheritanceAttribute)];
System\Windows\Forms\Design\ComponentTray.cs (3)
813return TypeDescriptor.GetAttributes(component).Contains(DesignTimeVisibleAttribute.Yes); 1949_inheritanceAttribute = (InheritanceAttribute)TypeDescriptor.GetAttributes(component)[typeof(InheritanceAttribute)]; 2442ToolboxBitmapAttribute attr = (ToolboxBitmapAttribute)TypeDescriptor.GetAttributes(_component)[typeof(ToolboxBitmapAttribute)];
System\Windows\Forms\Design\ControlCodeDomSerializer.cs (2)
243if (TypeDescriptor.GetAttributes(component).Contains(InheritanceAttribute.InheritedReadOnly)) 428InheritanceAttribute inheritanceAttribute = (InheritanceAttribute)TypeDescriptor.GetAttributes(child)[typeof(InheritanceAttribute)]!;
System\Windows\Forms\Design\ControlCommandSet.cs (1)
1320!TypeDescriptor.GetAttributes(obj)[typeof(InheritanceAttribute)].Equals(InheritanceAttribute.InheritedReadOnly))
System\Windows\Forms\Design\ControlDesigner.cs (4)
768if (TypeDescriptor.GetAttributes(Component).Contains(DesignTimeVisibleAttribute.Yes) 826if (TypeDescriptor.GetAttributes(Component).Contains(DesignTimeVisibleAttribute.Yes) 934AttributeCollection attributes = TypeDescriptor.GetAttributes(Component); 1159AttributeCollection attributes = TypeDescriptor.GetAttributes(Component);
System\Windows\Forms\Design\ControlDesigner.DesignerControlCollection.cs (1)
74TypeDescriptor.GetAttributes(_realCollection[i]).Contains(InheritanceAttribute.NotInherited))
System\Windows\Forms\Design\DataGridViewColumnCollectionDialog.cs (1)
1242AttributeCollection ICustomTypeDescriptor.GetAttributes() => TypeDescriptor.GetAttributes(DataGridViewColumn);
System\Windows\Forms\Design\DesignBindingPicker.cs (1)
1487ListBindableAttribute? listBindable = TypeDescriptor.GetAttributes(dataSource)[typeof(ListBindableAttribute)] as ListBindableAttribute;
System\Windows\Forms\Design\DesignerExtenders.NameExtenderProvider.cs (1)
59if (!TypeDescriptor.GetAttributes(o)[typeof(InheritanceAttribute)]?.Equals(InheritanceAttribute.NotInherited) ?? false)
System\Windows\Forms\Design\DesignerExtenders.NameInheritedExtenderProvider.cs (1)
39if (!TypeDescriptor.GetAttributes(o)[typeof(InheritanceAttribute)]?.Equals(InheritanceAttribute.NotInherited) ?? false)
System\Windows\Forms\Design\DocumentDesigner.cs (1)
896if (!addControl || !TypeDescriptor.GetAttributes(component).Contains(DesignTimeVisibleAttribute.Yes))
System\Windows\Forms\Design\OleDragDropHandler.cs (3)
264if (!TypeDescriptor.GetAttributes(comps[i]).Contains(DesignTimeVisibleAttribute.Yes)) 476InheritanceAttribute attr = (InheritanceAttribute)TypeDescriptor.GetAttributes(components[i])[typeof(InheritanceAttribute)]!; 807if (TypeDescriptor.GetAttributes(comp).Contains(DesignTimeVisibleAttribute.Yes))
System\Windows\Forms\Design\ParentControlDesigner.cs (2)
1525InheritanceAttribute attr = (InheritanceAttribute)TypeDescriptor.GetAttributes(comp)[typeof(InheritanceAttribute)]; 2157InheritanceAttribute inheritanceAttribute = (InheritanceAttribute)TypeDescriptor.GetAttributes(control)[typeof(InheritanceAttribute)];
System\Windows\Forms\Design\SplitterPanelDesigner.cs (1)
30? (InheritanceAttribute?)TypeDescriptor.GetAttributes(_splitterPanel.Parent)[typeof(InheritanceAttribute)]
System\Windows\Forms\Design\TableLayoutPanelDesigner.cs (1)
2212TypeDescriptor.GetAttributes(_realCollection[i]).Contains(InheritanceAttribute.NotInherited))
System\Windows\Forms\Design\ToolStripDesigner.cs (1)
178InheritanceAttribute ia = (InheritanceAttribute)TypeDescriptor.GetAttributes(ToolStrip)[typeof(InheritanceAttribute)];
System\Windows\Forms\Design\ToolStripKeyboardHandlingService.cs (2)
1100InheritanceAttribute ia = (InheritanceAttribute)TypeDescriptor.GetAttributes(tool)[typeof(InheritanceAttribute)]; 1128InheritanceAttribute ia = (InheritanceAttribute)TypeDescriptor.GetAttributes(tool)[typeof(InheritanceAttribute)];
System.Windows.Forms.Primitives (1)
System\ComponentModel\TypeDescriptorHelper.cs (1)
13attribute = TypeDescriptor.GetAttributes(component)[typeof(T)] as T;
System.Windows.Forms.Tests (1)
System\Windows\Forms\ComponentModel\Com2Interop\ComNativeDescriptorTests.cs (1)
223var attributes = TypeDescriptor.GetAttributes(vbcontrol);