Link
QuickLinks
Hierarchy
Properties
Property | Type | Access | Description |
---|---|---|---|
assetEtag | string | readonly | The asset etag of the linked object. |
assetID |
Array
of Longs Strings |
readonly | The asset ID of the linked object. Can return: Array of Strings or Longs. |
assetURL | string | readonly | The asset URL of the linked object. |
date | Date | readonly | The date and time the Link was created. |
edited | bool | readonly | If true, indicates the linked object has been edited in the current document but the source file has not been updated. |
filePath | File | readonly | The full path to the file. |
id | number | readonly | The unique ID of the Link. |
index | number | readonly | The index of the link in the links collection. |
label | string | r/w | A property that can be set to any string. |
linkType | string | readonly | The file type of the linked object. |
name | string | readonly | The name of the Link. |
needed | bool | readonly | If true, indicates a link to a full-resolution version of the source file is needed. If false, indicates the object is embedded. |
parent | Graphic Movie Sound Story |
readonly | The linked object. Can return: Story, Graphic, Movie or Sound. |
properties | Object | r/w | A property that allows setting of several properties at the same time. |
size | number | readonly | Size of the file |
status | LinkStatus: LinkStatus.NORMAL LinkStatus.LINK_OUT_OF_DATE LinkStatus.LINK_MISSING LinkStatus.LINK_EMBEDDED |
readonly | The status of the link. |
Methods
Instances
void editOriginal ()
Opens the source file of the link in the default editor for the source file type.
string extractLabel (key:
string)
Gets the label value associated with the specified key.
Parameter | Type | Description |
---|---|---|
key | string | The key. |
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. |
void relink (to:
File)
Points the link to a new source file.
Parameter | Type | Description |
---|---|---|
to | File | The full path name of the new source file. |
void show ()
Selects the link.
void unembed ([to:
File])
Unembeds the source file. If no folder is specified, creates a link to the original source file; if a folder is specified, copies the file to the folder and creates a link to the copied file.
Parameter | Type | Description |
---|---|---|
to | File | The folder to which to copy the unembedded file. (Optional) |
void unlink ()
Embeds the source file in the document.
Link update ()
Updates the link if the source file has been changed.
Element of
EPS.itemLink
Graphic.itemLink
Image.itemLink
Movie.itemLink
PDF.itemLink
PICT.itemLink
Sound.itemLink
Story.itemLink
WMF.itemLink
Return
Link Link.update ()
Jongware, 27-Jun-2010 v3.0.3d | Contents :: Index |