FontCollection

FontCollection class

Contains a collection of Font elements.

Constructors

NameDescription
FontCollectionConstructor.

Properties

NameTypeDescription
Countint
Item (int)Font

Methods

NameDescription
addAdd the Font object in the collection.
removeRemove the Font object from the collection.
getFontGets the element at the specified ID.
clear
removeAt
iteratorReserved for internal use.

FontCollection()

Constructor.

FontCollection.Count property

Type: int

FontCollection.Item (int) property

Type: Font

add(font)

Add the Font object in the collection.

ParameterTypeDescription
fontFont

remove(font)

Remove the Font object from the collection.

ParameterTypeDescription
fontFont

getFont(ID)

Gets the element at the specified ID.

ParameterTypeDescription
IDintint The ID of the element within its parent element.

Returns: Font Font.

clear()

removeAt(index)

iterator()

Reserved for internal use.