Home Cooker Classes Others Rice CookerGX
Classes  >  textarea  >  ReadOnly(bool)
textarea class : ReadOnly(bool) setter

Description

Sets a value indicating whether it is read-only.

Syntax

textareaInstance.ReadOnly = readonlyStatus

Arguments

ClassNameDescription
boolreadonlyStatusA value indicating whether it is read-only.

Return value

None

Sample code

// anyTextarea is an instance of textarea class.

anyTextarea.ReadOnly = true;

Notes

If you assign true to the ReadOnly setter, the readonly attribute will automatically be written to the tag.

If you assign false to the ReadOnly setter, the readonly attribute will automatically be removed from the tag.

Links for reference

Copyright © Rice All rights reserved.