Home Cooker Classes Others Rice CookerGX
Classes  >  textarea  >  Cols
textarea class : Cols getter

Description

Gets the width of the textarea.

Syntax

textareaInstance.Cols

Arguments

None

Return value

ClassDescription
intThe width of the textarea.

Sample code

// anyTextarea is an instance of textarea class.

int numberOfCharacters= anyTextarea.Cols;

Notes

It is the width specified in number of characters.

If there is no cols attribute, 20 is returned. It is the default value.

Links for reference

Copyright © Rice All rights reserved.