Edit in GitHubLog an issue

SVGs

A collection of SVG files.

Instance

Read Only

Number length

The number of objects in the collection.

Methods

SVG add( Object withProperties )

Creates a new SVG.

Parameters

TypeNameDescription
Object
withProperties
Initial values for properties of the new SVG (Optional)

Number count()

Displays the number of elements in the SVG.


SVG item( Mixed index )

Returns the SVG with the specified index or name.

Parameters

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

SVG itemByName( String name )

Returns the SVG with the specified name.

Parameters

TypeNameDescription
String
name
The name.

SVG itemByID( Number id )

Returns the SVG with the specified ID.

Parameters

TypeNameDescription
Number
id
The ID.

SVG itemByRange( Mixed from, Mixed to )

Returns the SVGs within the specified range.

Parameters

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

SVG firstItem()

Returns the first SVG in the collection.


SVG lastItem()

Returns the last SVG in the collection.


SVG middleItem()

Returns the middle SVG in the collection.


SVG previousItem( SVG obj )

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

Parameters

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

SVG nextItem( SVG obj )

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

Parameters

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

SVG anyItem()

Returns any SVG in the collection.


SVG everyItem()

Returns every SVG in the collection.


String toSource()

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


SVG []( Number index )

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