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