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

Availability

length

unsigned long

Returns the number of style sheets in the list.

read only

4.6 or later

StyleSheetList methods

Method name

Description

Availability

item()

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

4.6 or later

Method: StyleSheetList.item()

Availability

BlackBerry® Device Software version 4.6 or later

The item() method returns the StyleSheet object at the specified index in the StyleSheetList.

Syntax

StyleSheetList.item( index )

Parameters

Parameter

Type

Description

index

int

An integer that represents the stylesheet’s position in stylesheet list. Valid values are 0 to StyleSheetList.length-1.

Return values

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

Exceptions

None.

Next topic: Object: Text
Previous topic: StyleSheet properties

Was this information helpful? Send us your comments.