Home Cooker Classes Others Rice CookerGX
Classes  >  select  >  Size(int)
select class : Size(int) setter

Description

Sets a value of the size attribute.

Syntax

selectInstance.Size = attributeValue

Arguments

ClassNameDescription
intattributeValueA value of the size attribute.

Return value

None

Sample code

// anySelect is an instance of select class.

anySelect.Size = 5;

Notes

If you assign a value to the Size setter, the size attribute is automatically written to the tag. For example, if you assign 6 to the Size setter, size="6" appears in the tag.

If you assign 0 to the Size setter, the size attribute is automatically removed from the tag.

An exception will be raised if you assign a value less than 0.

Links for reference

Copyright © Rice All rights reserved.