Edit in GitHubLog an issue

XMLTags

A collection of XML tags.

Instance

Read Only

Number length

The number of objects in the collection.

Methods

XMLTag add( String name, Mixed tagColor, Object withProperties )

Creates a tag.

Parameters

TypeNameDescription
String
name
The name of the tag. (Optional)
Mixed
tagColor
The dolor of the tag, specified either as an array of three doubles, each in the range 0 to 255 and representing R, G, and B values, or as a UI color. Can accept: Array of 3 Reals (0 - 255) or UIColors enumerator. (Optional)
Object
withProperties
Initial values for properties of the new XMLTag (Optional)

Number count()

Displays the number of elements in the XMLTag.


XMLTag item( Mixed index )

Returns the XMLTag with the specified index or name.

Parameters

TypeNameDescription
Mixed
index
The index or name. Can accept: Long Integer or String.

XMLTag itemByName( String name )

Returns the XMLTag with the specified name.

Parameters

TypeNameDescription
String
name
The name.

XMLTag itemByID( Number id )

Returns the XMLTag with the specified ID.

Parameters

TypeNameDescription
Number
id
The ID.

XMLTag itemByRange( Mixed from, Mixed to )

Returns the XMLTags within the specified range.

Parameters

TypeNameDescription
Mixed
from
The XMLTag, index, or name at the beginning of the range. Can accept: XMLTag, Long Integer or String.
Mixed
to
The XMLTag, index, or name at the end of the range. Can accept: XMLTag, Long Integer or String.

XMLTag firstItem()

Returns the first XMLTag in the collection.


XMLTag lastItem()

Returns the last XMLTag in the collection.


XMLTag middleItem()

Returns the middle XMLTag in the collection.


XMLTag previousItem( XMLTag obj )

Returns the XMLTag with the index previous to the specified index.

Parameters

TypeNameDescription
XMLTag
obj
The index of the XMLTag that follows the desired XMLTag.

XMLTag nextItem( XMLTag obj )

Returns the XMLTag whose index follows the specified XMLTag in the collection.

Parameters

TypeNameDescription
XMLTag
obj
The XMLTag whose index comes before the desired XMLTag.

XMLTag anyItem()

Returns any XMLTag in the collection.


XMLTag everyItem()

Returns every XMLTag in the collection.


String toSource()

Generates a string which, if executed, will return the XMLTag.


XMLTag []( Number index )

Returns the XMLTag with the specified index.

Parameters

TypeNameDescription
Number
index
The index.
Was this helpful?
  • Privacy
  • Terms of Use
  • Do not sell or share my personal information
  • AdChoices
Copyright © 2023 Adobe. All rights reserved.