Compartilhar via


readOnly property

Sets or retrieves the value indicated whether the content of the object is read-only.

Syntax

HRESULT value = object.put_readOnly( v);HRESULT value = object.get_readOnly(* p);

Property values

Type: VARIANT_BOOL

VARIANT_FALSE (false)

Default. Property is not set on the object.

VARIANT_TRUE (true)

Object is set to read-only.

Remarks

If the value of the IHTMLTextAreaElement::readOnly property is set to true, the user cannot enter or edit text in the control. When set to true, the property still allows the object to receive the focus, whereas the IHTMLTextAreaElement::disabled property does not.