Method SetPropertyMaxLength
SetPropertyMaxLength(IPropertyGridItem, int)
Sets maximum length of text in property text editor.
public virtual bool SetPropertyMaxLength(IPropertyGridItem prop, int maxLen)
Parameters
prop
IPropertyGridItemProperty item.
maxLen
intMaximum number of characters of the text the user can enter in the text editor. If it is 0, the length is not limited and the text can be as long as it is supported by the underlying native text control widget.
Returns
- bool
true
if maximum length was set,false
otherwise.