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