Edit in GitHubLog an issue

Graphics

A collection of imported graphics in any graphic file format (vector, metafile, or bitmap).

Instance

Read Only

Number length

The number of objects in the collection.

Methods

Number count()

Displays the number of elements in the Graphic.


Graphic item( Mixed index )

Returns the Graphic with the specified index or name.

Parameters

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

Graphic itemByName( String name )

Returns the Graphic with the specified name.

Parameters

TypeNameDescription
String
name
The name.

Graphic itemByID( Number id )

Returns the Graphic with the specified ID.

Parameters

TypeNameDescription
Number
id
The ID.

Graphic itemByRange( Mixed from, Mixed to )

Returns the Graphics within the specified range.

Parameters

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

Graphic firstItem()

Returns the first Graphic in the collection.


Graphic lastItem()

Returns the last Graphic in the collection.


Graphic middleItem()

Returns the middle Graphic in the collection.


Graphic previousItem( Graphic obj )

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

Parameters

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

Graphic nextItem( Graphic obj )

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

Parameters

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

Graphic anyItem()

Returns any Graphic in the collection.


Graphic everyItem()

Returns every Graphic in the collection.


String toSource()

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


Graphic []( Number index )

Returns the Graphic 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.