Help Center

Local Navigation

Object: CSSRuleList

Availability

BlackBerry® Device Software version 4.6 or later

The CSSRuleList object represents an ordered collection of CSSRule objects.

CSSRuleList properties

Property name

Type

Description

Status

Availability

length

int

Returns the number of rules in the list.

read only

4.6 or later

CSSRuleList methods

Method name

Description

Availability

item()

Returns the rule at the specified index in the collection.

4.6 or later

Method: CSSRuleList.item()

The item() method returns the CSSRule object at the specified index in the CSSRuleList.

Syntax

CSSRuleList.item( index )

Parameters

Parameter

Type

Description

index

int

An integer that represents the CSS rules’s position in rule list. Valid values are 0 to CSSRuleList.length-1.

Return values

Returns the rule at the indexth position in CSSRuleList, or null if an invalid index position is specified.

Exceptions

None.

See Also

CSSRule

Previous topic: CSSRule properties

Was this information helpful? Send us your comments.