An object library asset.
Properties
| Property | Type | Access | Description |
|---|---|---|---|
| assetType |
AssetType
: IMAGE_TYPE EPS_TYPE PDF_TYPE GEOMETRY_TYPE PAGE_TYPE TEXT_TYPE STRUCTURE_TYPE INDESIGN_FILE_TYPE |
r/w | The type of object library asset. |
| date | Date | readonly | The date and time the Asset was created. |
| description | string | r/w | The description of the Asset. |
| id | number | readonly | The unique ID of the Asset. |
| index | number | readonly | The index of the Asset within its containing object. |
| label | string | r/w | A property that can be set to any string. |
| name | string | r/w | The name of the Asset. |
| parent | Library | readonly | The parent of the Asset (a Library). |
| properties | Object | r/w | A property that allows setting of several properties at the same time. |
Methods
string extractLabel (key:
string)
Gets the label value associated with the specified key.
| Parameter | Type | Description |
|---|---|---|
| key | string | The key. |
Array of Asset
getElements ()
Resolves the object specifier, creating an array of object references.
void insertLabel (key:
string, value:
string)
Sets the label to the value associated with the specified key.
| Parameter | Type | Description |
|---|---|---|
| key | string | The key. |
| value | string | The value. |
Array of any placeAsset (on:
any)
Places the asset in the specified document or text.
| Parameter | Type | Description |
|---|---|---|
| on |
Document
Text |
The document or text object in which to place the asset. Can accept: Document or Text. |
void remove ()
Deletes the Asset.
void select ([existingSelection:
SelectionOptions=REPLACE_WITH])
Selects the Asset.
| Parameter | Type | Description |
|---|---|---|
| existingSelection | SelectionOptions
: ADD_TO REMOVE_FROM REPLACE_WITH |
The selection status of the Asset in relation to previously selected objects. (Optional) (default: REPLACE_WITH) |
string toSource ()
Generates a string which, if executed, will return the Asset.
string toSpecifier ()
Retrieves the object specifier.
Used in:
Assets.previousItem ( obj: Asset)Assets.nextItem ( obj: Asset)
Returned by:
Array of Asset Asset.getElements ( )Asset Assets.anyItem ( )
Array of Asset Assets.everyItem ( )
Asset Assets.firstItem ( )
Asset Assets.item ( index: any )
Asset Assets.itemByID ( id: number )
Asset Assets.itemByName ( name: string )
Array of Asset Assets.itemByRange ( from: any, to: any )
Asset Assets.lastItem ( )
Asset Assets.middleItem ( )
Asset Assets.nextItem ( obj: Asset )
Asset Assets.previousItem ( obj: Asset )
Asset Button.store ( using: Library[, withProperties: Object] )
Asset EPS.store ( using: Library[, withProperties: Object] )
Asset FormField.store ( using: Library[, withProperties: Object] )
Asset GraphicLine.store ( using: Library[, withProperties: Object] )
Asset Group.store ( using: Library[, withProperties: Object] )
Asset Image.store ( using: Library[, withProperties: Object] )
Asset Library.store ( using: Array of any[, withProperties: Object] )
Asset Movie.store ( using: Library[, withProperties: Object] )
Asset Oval.store ( using: Library[, withProperties: Object] )
Asset PageItem.store ( using: Library[, withProperties: Object] )
Asset PDF.store ( using: Library[, withProperties: Object] )
Asset PICT.store ( using: Library[, withProperties: Object] )
Asset Polygon.store ( using: Library[, withProperties: Object] )
Asset Rectangle.store ( using: Library[, withProperties: Object] )
Asset Sound.store ( using: Library[, withProperties: Object] )
Asset TextFrame.store ( using: Library[, withProperties: Object] )
Asset WMF.store ( using: Library[, withProperties: Object] )
Asset XMLElement.store ( using: Library[, withProperties: Object] )