41 references to TypeDescriptorHelper
System.Windows.Forms (9)
System\Windows\Forms\Controls\PropertyGrid\PropertyGrid.cs (5)
2151if (!TypeDescriptorHelper.TryGetAttribute(components[0], out PropertyTabAttribute? tabAttribute)) 2169if (!TypeDescriptorHelper.TryGetAttribute(components[i], out tabAttribute)) 2424if (!TypeDescriptorHelper.TryGetAttribute(e.Component.GetType(), out PropertyTabAttribute? tabAttribute)) 2471if (!TypeDescriptorHelper.TryGetAttribute(e.Component.GetType(), out PropertyTabAttribute? tabAttribute)) 3447if (TypeDescriptorHelper.TryGetAttribute(components.GetType(), out PropertyTabAttribute? tabAttribute))
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\GridEntry.cs (1)
1282forceReadOnly = TypeDescriptorHelper.TryGetAttribute(value, out ReadOnlyAttribute? readOnlyAttribute)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\MultiSelectRootGridEntry.cs (1)
43if ((TypeDescriptorHelper.TryGetAttribute(target, out ReadOnlyAttribute? readOnlyAttribute)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\SingleSelectRootGridEntry.cs (2)
126if ((TypeDescriptorHelper.TryGetAttribute(Target, out ReadOnlyAttribute? readOnlyAttribute) 152if (TypeDescriptorHelper.TryGetAttribute(Target, out HelpKeywordAttribute? helpAttribute)
System.Windows.Forms.Design (32)
System\ComponentModel\Design\CollectionEditor.cs (2)
61if (TypeDescriptorHelper.TryGetAttribute(component, out InheritanceAttribute? attribute) 145if (TypeDescriptorHelper.TryGetPropertyValue(value, "Name", out string? text))
System\ComponentModel\Design\DesignerHost.cs (1)
1001if (TypeDescriptorHelper.TryGetAttribute(component, out InheritanceAttribute? ia) && ia.InheritanceLevel != InheritanceLevel.NotInherited)
System\ComponentModel\Design\Serialization\CodeDomDesignerLoader.ModifiersExtenderProvider.cs (1)
105if (TypeDescriptorHelper.TryGetPropertyValue(comp, "DefaultModifiers",
System\ComponentModel\Design\Serialization\CollectionCodeDomSerializer.cs (2)
491if (TypeDescriptorHelper.TryGetAttribute(o, out InheritanceAttribute? ia)) 573if (TypeDescriptorHelper.TryGetAttribute(o, out InheritanceAttribute? ia))
System\ComponentModel\Design\Serialization\ComponentCodeDomSerializer.cs (1)
120if (TypeDescriptorHelper.TryGetAttribute(value, out InheritanceAttribute? inheritanceAttribute))
System\ComponentModel\Design\Serialization\ResourceCodeDomSerializer.SerializationResourceManager.cs (1)
77if (TypeDescriptorHelper.TryGetPropertyValue(comp, "LoadLanguage", out CultureInfo? cultureInfo))
System\ComponentModel\Design\Serialization\ResourcePropertyMemberCodeDomSerializer.cs (1)
110if (!manager.TryGetContext(out InheritanceAttribute? inheritance) && !TypeDescriptorHelper.TryGetAttribute(value, out inheritance))
System\Drawing\Design\ToolboxItem.cs (2)
592if (TypeDescriptorHelper.TryGetAttribute(type, out DescriptionAttribute? descattr)) 597if (TypeDescriptorHelper.TryGetAttribute(type, out ToolboxBitmapAttribute? attr))
System\Windows\Forms\Design\CommandSet.cs (2)
286if (!TypeDescriptorHelper.TryGetEditor(obj, out ComponentEditor? editor)) 735(!TypeDescriptorHelper.TryGetPropertyValue(comp, "Locked", out bool b) || !b))
System\Windows\Forms\Design\ControlCodeDomSerializer.cs (4)
101if (TypeDescriptorHelper.TryGetAttribute(control, out InheritanceAttribute? inheritanceAttribute) 132if (TypeDescriptorHelper.TryGetAttribute(control, out InheritanceAttribute? inheritanceAttribute) 163if (TypeDescriptorHelper.TryGetAttribute(value, out InheritanceAttribute? inheritanceAttribute)) 181if (TypeDescriptorHelper.TryGetPropertyValue(host.RootComponent, "Localizable", out bool b) && b)
System\Windows\Forms\Design\DataGridViewAddColumnDialog.cs (1)
691if (TypeDescriptorHelper.TryGetAttribute(type, out DataGridViewColumnDesignTimeVisibleAttribute? attribute) && !attribute.Visible)
System\Windows\Forms\Design\DataGridViewColumnCollectionDialog.cs (1)
1220if (TypeDescriptorHelper.TryGetAttribute(column, out ToolboxBitmapAttribute? attr))
System\Windows\Forms\Design\ImageIndexEditor.cs (1)
27ImageEditor = TypeDescriptorHelper.GetEditor<UITypeEditor>(typeof(Image));
System\Windows\Forms\Design\ListBoxDesigner.cs (3)
128if (TypeDescriptorHelper.TryGetPropertyValue(Component, nameof(ListBox.Name), out string? name) 156&& TypeDescriptorHelper.TryGetPropertyValue(Component, nameof(ListBox.Name), out string? name) 170if (TypeDescriptorHelper.TryGetPropertyValue(Component, nameof(ListBox.Name), out string? name)
System\Windows\Forms\Design\StatusCommandUI.cs (2)
50else if (!TypeDescriptorHelper.TryGetPropertyValue(selectedComponent, "Bounds", out bounds)) 79else if (!TypeDescriptorHelper.TryGetPropertyValue(selectedComponent, "Bounds", out bounds))
System\Windows\Forms\Design\TableLayoutControlCollectionCodeDomSerializer.cs (2)
34isTargetInherited = TypeDescriptorHelper.TryGetAttribute(comp, out InheritanceAttribute? ia) && ia.InheritanceLevel == InheritanceLevel.Inherited; 43if (TypeDescriptorHelper.TryGetAttribute(o, out InheritanceAttribute? ia))
System\Windows\Forms\Design\TableLayoutPanelCodeDomSerializer.cs (2)
46if (!TypeDescriptorHelper.TryGetAttribute(panel, out InheritanceAttribute? ia) || ia.InheritanceLevel != InheritanceLevel.InheritedReadOnly) 71if (TypeDescriptorHelper.TryGetPropertyValue(host.RootComponent, "Localizable", out bool b))
System\Windows\Forms\Design\ToolStripActionList.cs (2)
37if (!TypeDescriptorHelper.TryGetAttribute(_toolStrip, out InheritanceAttribute? ia) || ia.InheritanceLevel == InheritanceLevel.NotInherited) 48!TypeDescriptorHelper.TryGetAttribute(_toolStrip, out InheritanceAttribute? ia)
System\Windows\Forms\Design\ToolStripCodeDomSerializer.cs (1)
28if (TypeDescriptorHelper.TryGetAttribute(item, out InheritanceAttribute? ia) && ia.InheritanceLevel != InheritanceLevel.InheritedReadOnly)