11 references to TryGetAttribute
System.Windows.Forms (6)
misc\ImageListUtils.cs (1)
20
|| !currentComponent.
TryGetAttribute
(out RelatedImageListAttribute? relatedAttribute)
System\Windows\Forms\ActiveX\AxHost.AxPropertyDescriptor.cs (1)
90
=> _baseDescriptor.
TryGetAttribute
(out DispIdAttribute? dispid)
System\Windows\Forms\ActiveX\AxHost.cs (1)
2662
&& prop.
TryGetAttribute
(out BrowsableAttribute? browsableAttribute)
System\Windows\Forms\Controls\PropertyGrid\PropertyGrid.cs (1)
2362
if (selectedEntry.PropertyDescriptor.
TryGetAttribute
(out DispIdAttribute? dispIdAttribute)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyDescriptorGridEntry.cs (2)
68
if (PropertyDescriptor.
TryGetAttribute
(out HelpKeywordAttribute? helpAttribute) &&
304
if (PropertyDescriptor.
TryGetAttribute
(out RefreshPropertiesAttribute? refreshAttribute) &&
System.Windows.Forms.Design (5)
System\ComponentModel\Design\InheritedPropertyDescriptor.cs (2)
158
!_propertyDescriptor.
TryGetAttribute
(out DesignerSerializationVisibilityAttribute? dsva) ||
207
if (_propertyDescriptor.
TryGetAttribute
(out DefaultValueAttribute? defaultAttribute))
System\ComponentModel\Design\Serialization\PropertyMemberCodeDomSerializer.cs (2)
34
if (property.
TryGetAttribute
(out AmbientValueAttribute? attr))
38
else if (property.
TryGetAttribute
(out DefaultValueAttribute? defAttr))
System\Windows\Forms\Design\ImageIndexEditor.cs (1)
141
|| !currentComponent.
TryGetAttribute
(out RelatedImageListAttribute? imageListAttribute))