Snippet
QuickLinks
Hierarchy
Properties
Property | Type | Access | Description |
---|---|---|---|
buttons | Buttons | readonly | A collection of buttons. |
checkBoxes | CheckBoxes | readonly | A collection of checkboxes. |
comboBoxes | ComboBoxes | readonly | A collection of comboboxes. |
epss | EPSs | readonly | A collection of EPS files. |
epstexts | EPSTexts | readonly | EPSTexts |
eventListeners | EventListeners | readonly | A collection of event listeners. |
events | Events | readonly | A collection of events. |
formFields | FormFields | readonly | A collection of form fields. |
graphicLines | GraphicLines | readonly | A collection of graphic lines. |
graphics | Graphics | readonly | A collection of imported graphics in any graphic file format (vector, metafile, or bitmap). |
groups | Groups | readonly | A collection of groups. |
id | number | readonly | The unique ID of the Snippet. |
images | Images | readonly | A collection of bitmap images in any bitmap file format (including TIFF, JPEG, or GIF). |
index | number | readonly | The index of the Snippet within its containing object. |
isValid | bool | readonly | Returns true if the object specifier resolves to valid objects. |
label | string | r/w | A property that can be set to any string. |
listBoxes | ListBoxes | readonly | A collection of listboxes. |
multiStateObjects | MultiStateObjects | readonly | A collection of multi-state objects. |
name | string | r/w | The name of the Snippet; this is an alias to the Snippet's label property. |
ovals | Ovals | readonly | A collection of ellipses. |
pageItems | 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. |
parent | PlaceGun | readonly | The parent of the Snippet (a PlaceGun). |
pdfs | PDFs | readonly | A collection of PDF files. |
picts | PICTs | readonly | A collection of PICT graphics. |
polygons | Polygons | readonly | A collection of polygons. |
properties | Object | r/w | A property that allows setting of several properties at the same time. |
radioButtons | RadioButtons | readonly | A collection of radio buttons. |
rectangles | Rectangles | readonly | A collection of rectangles. |
signatureFields | SignatureFields | readonly | A collection of signature fields. |
splineItems | SplineItems | readonly | The spline items collection. |
textBoxes | TextBoxes | readonly | A collection of text boxes. |
textFrames | TextFrames | readonly | A collection of text frames. |
wmfs | WMFs | readonly | A collection of WMF graphics. |
Class
Property | Type | Access | Description |
---|---|---|---|
BEFORE_PLACE | string | readonly | Dispatched before a Snippet is placed. This event bubbles. This event is cancelable. (default: beforePlace) |
Methods
Instances
EventListener addEventListener (eventType:
string, handler:
varies[, captures:
bool=false])
Adds an event listener.
Parameter | Type | Description |
---|---|---|
eventType | string | The event type. |
handler | File JavaScript Function | The event handler. Can accept: File or JavaScript Function. |
captures | bool | This parameter is obsolete. (Optional) (default: false) |
string extractLabel (key:
string)
Gets the label value associated with the specified key.
Parameter | Type | Description |
---|---|---|
key | string | The key. |
Array of Snippet 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. |
void remove ()
Deletes the Snippet.
bool removeEventListener (eventType:
string, handler:
varies[, captures:
bool=false])
Removes the event listener.
Parameter | Type | Description |
---|---|---|
eventType | string | The registered event type. |
handler | File JavaScript Function | The registered event handler. Can accept: File or JavaScript Function. |
captures | bool | This parameter is obsolete. (Optional) (default: false) |
string toSource ()
Generates a string which, if executed, will return the Snippet.
Element of
Button.parent
CheckBox.parent
ComboBox.parent
EPS.parent
EPSText.parent
FormField.parent
Graphic.parent
GraphicLine.parent
Group.parent
Image.parent
ListBox.parent
MultiStateObject.parent
Oval.parent
PDF.parent
PICT.parent
PageItem.parent
Polygon.parent
RadioButton.parent
Rectangle.parent
SignatureField.parent
SplineItem.parent
TextBox.parent
TextFrame.parent
WMF.parent
Used in:
Snippet Snippets.nextItem (obj: Snippet)
Snippet Snippets.previousItem (obj: Snippet)
Return
Array of Snippet Snippet.getElements ()
Snippet Snippets.[] (index: number)
Snippet Snippets.anyItem ()
Array of Snippet Snippets.everyItem ()
Snippet Snippets.firstItem ()
Snippet Snippets.item (index: varies)
Snippet Snippets.itemByID (id: number)
Snippet Snippets.itemByName (name: string)
Array of Snippet Snippets.itemByRange (from: varies, to: varies)
Snippet Snippets.lastItem ()
Snippet Snippets.middleItem ()
Snippet Snippets.nextItem (obj: Snippet)
Snippet Snippets.previousItem (obj: Snippet)
Jongware, 28-Apr-2012 v3.0.3h | Contents :: Index |