Help Center

Local Navigation

Object: StyleSheetList

Availability

BlackBerry® Device Software version 4.6 or later

The StyleSheetList object represents an ordered collection of StyleSheet objects.

You can access an individual StyleSheet within a collection by its index position using StyleSheetList.item() or you can index the object directly. For example, if you create an instance of a StyleSheetList object called myStyleSheets, then specifying

myStyleSheets.item(2)

is equivalent to specifying

myStyleSheets[2]

StyleSheetList properties

Property name

Type

Description

Status

Support level

Availability

length

unsigned long

Returns the number of style sheets in the list.

read only

DOM 2 Style

4.6 or later

StyleSheetList methods

Method name

Description

Support level

Availability

item()

Returns the StyleSheet object at the specified index in the StyleSheetList.

DOM 2 Style

4.6 or later

Next topic: Events API
Previous topic: StyleSheet properties

Was this information helpful? Send us your comments.