Adds an event listener.
Object
Snippet
An IDML snippet.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
| Buttons |
readonly | A collection of buttons. | |
| CheckBoxes |
readonly | A collection of checkboxes. | |
| ComboBoxes |
readonly | A collection of comboboxes. | |
| EPSs |
readonly | A collection of EPS files. | |
| EPSTexts |
readonly | EPSTexts | |
| EventListeners |
readonly | A collection of event listeners. | |
| Events |
readonly | A collection of events. | |
| FormFields |
readonly | A collection of form fields. | |
| GraphicLines |
readonly | A collection of graphic lines. | |
| Graphics |
readonly | A collection of imported graphics in any graphic file format (vector, metafile, or bitmap). | |
| Groups |
readonly | A collection of groups. | |
| Number | readonly | The unique ID of the Snippet. | |
| Images |
readonly | A collection of bitmap images in any bitmap file format (including TIFF, JPEG, or GIF). | |
| Number | readonly | The index of the Snippet within its containing object. | |
| Boolean | readonly | Returns true if the object specifier resolves to valid objects. | |
| String | read/write | A property that can be set to any string. | |
| ListBoxes |
readonly | A collection of listboxes. | |
| MultiStateObjects |
readonly | A collection of multi-state objects. | |
| String | read/write | The name of the Snippet; this is an alias to the Snippet's label property. | |
| Ovals |
readonly | A collection of ellipses. | |
| PageItems |
readonly | The page items collection, which can be used to process all page items in a container (such as a document, page, or group), regardless of type. | |
| PlaceGun | readonly | The parent of the Snippet (a PlaceGun). | |
| PDFs |
readonly | A collection of PDF files. | |
| PICTs |
readonly | A collection of PICT graphics. | |
| Polygons |
readonly | A collection of polygons. | |
| Object | read/write | A property that allows setting of several properties at the same time. | |
| RadioButtons |
readonly | A collection of radio buttons. | |
| Rectangles |
readonly | A collection of rectangles. | |
| SignatureFields |
readonly | A collection of signature fields. | |
| SplineItems |
readonly | The spline items collection. | |
| SVGs |
readonly | A collection of SVG files. | |
| TextBoxes |
readonly | A collection of text boxes. | |
| TextFrames |
readonly | A collection of text frames. | |
| WMFs |
readonly | A collection of WMF graphics. |
Events
| Name | Description |
|---|---|
| Dispatched before a Snippet is placed. This event bubbles. This event is cancelable. |
Methods
→ String
Gets the label value associated with the specified key.
→ Snippet[]
Resolves the object specifier, creating an array of object references.
→ void
Sets the label to the value associated with the specified key.
→ void
Deletes the Snippet.
→ Boolean
Removes the event listener.
→ String
Generates a string which, if executed, will return the Snippet.
→ String
Retrieves the object specifier.
Object of 28
Properties elsewhere that hold a Snippet.
Button.parentCheckBox.parentComboBox.parentEPS.parentEPSText.parentEvent.parentEventListener.parentFormField.parentGraphic.parentGraphicLine.parentGroup.parentImage.parentListBox.parentMultiStateObject.parentMutationEvent.parentOval.parentPDF.parentPICT.parentPageItem.parentPolygon.parentRadioButton.parentRectangle.parentSVG.parentSignatureField.parentSplineItem.parentTextBox.parentTextFrame.parentWMF.parent
Parameter of 3
Method parameters that accept a Snippet.
Return 13
Methods that return a Snippet.