new FontCollection()

Constructor.

Methods

add(font) → Number

Add the Font object in the collection.

Parameter

Name Type Optional Description

font

Font

 

Returns

Number 

clear()

Removes all elements from collection.

get(index) → Font

Gets the element at the specified index.

Parameter

Name Type Optional Description

index

Number

 

Returns

Font 

getCount()

Gets the number of elements actually contained in the collection.

getFont(ID) → Font

Gets the element at the specified ID.

Parameter

Name Type Optional Description

ID

Number

 

int

Returns

Font FontFont.

isExist(index) → boolean

Is exist item in the collection.

Parameter

Name Type Optional Description

index

Number

 

index of element.

Returns

boolean 

iterator() → Iterator

Supports a simple iteration over a nongeneric collection.

Returns

Iterator 

remove(font)

Remove the Font object from the collection.

Parameter

Name Type Optional Description

font

Font