docmain.css" /> AttributeSet - Reflection ZFE 2.1

AttributeSet

The AttributeSet object allows the user to decode the attributes that are present on the data cell. The AttributeSet object returns values defined in the Attribute object and when used together, you can get formatting information from the data cell.

Table 8-2 AttributeSet

METHODS

contains(attribute)

Determines if the set contains the specified Attribute.

Parameters

{Number} attribute to check

Returns

{Boolean} True if the attribute is in the set.

isEmpty()

Determines if the attribute set is empty.

Returns

{Boolean}True if the set is empty.

size()

Indicates the number of attributes in a set.

Returns

{Number} The attribute count.

toArray()

Converts the internal attribute set to an array.

Returns

{Number[]}Array of values of attributes in the set.

toString()

Converts the internal attribute set to a string.

Returns

{String} Space-delimited names of attributes in the set.

forEach(callback, thisArg)

Function to iterate over each element in the attribute set.

Parameters

{forEachCallback} Callback to perform the specific operation. Called with the name of each attribute in the set.

{Object} this Arg optional pointer to a context object.

forEachCallback(string, object)

A user provided callback function where you provide the behavior, to be used as the callback parameter to forEach.

Parameters

{String} String name of an attribute in the attribute set.

{Object} thisArg optional pointer to a context object.