Method SetPropertyAttributeAsVariant
SetPropertyAttributeAsVariant(IPropertyGridItem, string, IPropertyGridVariant, PropertyGridItemValueFlags)
Sets an attribute for the property.
void SetPropertyAttributeAsVariant(IPropertyGridItem prop, string attrName, IPropertyGridVariant value, PropertyGridItemValueFlags argFlags = PropertyGridItemValueFlags.DontRecurse)
Parameters
propIPropertyGridItemattrNamestringText identifier of attribute. See PropertyGridItemAttrId for the known attribute names.
valueIPropertyGridVariantValue of attribute.
argFlagsPropertyGridItemValueFlagsOptional. Use Recurse to set the attribute to child properties recursively.
Remarks
Property is refreshed with new settings after calling this method.