6 references to TryGetAttribute
System.Windows.Forms (3)
System\Windows\Forms\Controls\PropertyGrid\PropertyGrid.cs (3)
2426
if (!TypeDescriptorHelper.
TryGetAttribute
(e.Component.GetType(), out PropertyTabAttribute? tabAttribute))
2473
if (!TypeDescriptorHelper.
TryGetAttribute
(e.Component.GetType(), out PropertyTabAttribute? tabAttribute))
3449
if (TypeDescriptorHelper.
TryGetAttribute
(components.GetType(), out PropertyTabAttribute? tabAttribute))
System.Windows.Forms.Design (3)
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\DataGridViewAddColumnDialog.cs (1)
691
if (TypeDescriptorHelper.
TryGetAttribute
(type, out DataGridViewColumnDesignTimeVisibleAttribute? attribute) && !attribute.Visible)