Partager via


maxLength property

[This documentation is preliminary and is subject to change.]

Sets or retrieves the maximum number of characters that the user can enter in a text control.

HTML 4.01 Specification, Section 17.4

Syntax

HRESULT value = object.put_maxLength(long v);HRESULT value = object.get_maxLength(long* p);

Property values

Type: long

The maximum length of the input.

Standards information

Remarks

The maxLength property limits the number of characters the user can enter. The property does not limit programmatic assignments to the value property. The property's value can be larger than the size of the text box, in which case the text box scrolls as the user types.

See also

size

 

 

Build date: 1/26/2012