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