Home Cooker Classes Others Rice CookerGX
Classes  >  textarea  >  Cols(int)
textarea class : Cols(int) setter

Description

Sets the width of the textarea.

Syntax

textareaInstance.Cols = numberOfCharacters

Arguments

ClassNameDescription
intnumberOfCharactersThe width of the textarea.

Return value

None

Sample code

// anyTextarea is an instance of textarea class.

anyTextarea.Cols = 5;

Notes

It is the width specified in number of characters.

An exception will be raised if a value less than or equal to 0 is assigned.

Links for reference

Copyright © Rice All rights reserved.