Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Collapse the table of content
Expand the table of content

size property

Sets or retrieves the size of the control.

HTML 4.01 Specification, Section 17.4



HRESULT value = object.put_size( v);HRESULT value = object.get_size(* p);

Property values

Type: long

The size, in characters.

Standards information


Although this property is read/write, no change is visible when you set the size of the input type=reset, input type=submit, and input type=image objects. However, you can detect a change to the IHTMLInputTextElement::size property for these objects in code.

For the input type=text object, the size is in characters and represents the width of the text box. When the size is specified, the select object represents a list box with the specified number of rows.

See also




Community Additions

© 2015 Microsoft