Table of Contents

Method SetPropertyMaxLength

Namespace
Alternet.UI
Assembly
Alternet.UI.Common.dll

SetPropertyMaxLength(IPropertyGridItem, int)

Sets maximum length of text in property text editor.

bool SetPropertyMaxLength(IPropertyGridItem prop, int maxLen)

Parameters

prop IPropertyGridItem

Property item.

maxLen int

Maximum 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.