Method SetPropertyAttribute
SetPropertyAttribute(IPropertyGridItem, string, IPropertyGridVariant, PropertyGridItemValueFlags)
Sets an attribute for the property.
void SetPropertyAttribute(IPropertyGridItem id, string attrName, IPropertyGridVariant variant, PropertyGridItemValueFlags argFlags)
Parameters
idIPropertyGridItemattrNamestringText identifier of attribute. See PropertyGridItemAttrId for the known attribute names.
variantIPropertyGridVariantargFlagsPropertyGridItemValueFlagsOptional. Use Recurse to set the attribute to child properties recursively.
Remarks
Setting attribute's value to null will simply remove it from property's
set of attributes.