PlaceGun
Represents the place gun.
Go to Property Listing | Method Listing
Methods:
abortPlaceGun, addEventListener, getElements, loadPlaceGun, removeEventListener, rotate, toSource, toSpecifier
Objects:
Boolean, Buttons, CheckBoxes, ComboBoxes, EPSTexts, EPSs, EventListeners, Events, FormFields, GraphicLines, Graphics, Groups, Images, ImportedPages, ListBoxes, MultiStateObjects, Object, Ovals, PDFs, PICTs, PageItems, Polygons, RadioButtons, Rectangles, SVGs, SignatureFields, Snippets, SplineItems, TextBoxes, TextFrames, WMFs
Hierarchy:
Superclass: Preference
Class: PlaceGun
Property Listing
Property |
Type |
Access |
Description |
---|---|---|---|
readonly |
A collection of buttons. |
||
readonly |
A collection of checkboxes. |
||
readonly |
A collection of comboboxes. |
||
readonly |
A collection of EPS files. |
||
readonly |
EPSTexts |
||
readonly |
A collection of event listeners. |
||
readonly |
A collection of events. |
||
readonly |
A collection of form fields. |
||
readonly |
A collection of graphic lines. |
||
readonly |
A collection of imported graphics in any graphic file format (vector, metafile, or bitmap). |
||
readonly |
A collection of groups. |
||
readonly |
A collection of bitmap images in any bitmap file format (including TIFF, JPEG, or GIF). |
||
readonly |
Imported InDesign pages. |
||
readonly |
Returns true if the object specifier resolves to valid objects. |
||
readonly |
A collection of listboxes. |
||
readonly |
Whether the place gun is currently loaded with content for placing. |
||
readonly |
A collection of multi-state objects. |
||
readonly |
A collection of ellipses. |
||
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. |
||
readonly |
The parent of the PlaceGun (a Document). |
||
readonly |
A collection of PDF files. |
||
readonly |
A collection of PICT graphics. |
||
readonly |
A collection of polygons. |
||
read/write |
A property that allows setting of several properties at the same time. |
||
readonly |
A collection of radio buttons. |
||
readonly |
A collection of rectangles. |
||
readonly |
A collection of signature fields. |
||
readonly |
A collection of IDML snippets. |
||
readonly |
The spline items collection. |
||
readonly |
A collection of SVG files. |
||
readonly |
A collection of text boxes. |
||
readonly |
A collection of text frames. |
||
readonly |
A collection of WMF graphics. |
Method Listing
undefined abortPlaceGun ()
Delete the contents of the place gun.
EventListener addEventListener (eventType:String, handler:Varies File JavaScriptFunction, [captures:Boolean=Boolean])
Adds an event listener.
Parameter |
Type |
Description |
---|---|---|
eventType |
The event type. |
|
handler |
JavaScriptFunction |
The event handler. Can accept: File or JavaScript Function. |
captures |
This parameter is obsolete. (Optional) (default: false) |
PlaceGun getElements ()
Resolves the object specifier, creating an array of object references.
undefined loadPlaceGun (fileName:Array of Varies File Files., [showingOptions:Boolean=Boolean], withProperties:Object)
Load the place gun with one or more files.
Parameter |
Type |
Description |
---|---|---|
fileName |
Array of Files. |
One or more files to place. Can accept: File or Array of Files. |
showingOptions |
Whether to display the import options dialog (Optional) (default: false) |
|
withProperties |
Initial values for properties of the placed object(s) (Optional) |
Boolean removeEventListener (eventType:String, handler:Varies File JavaScriptFunction, [captures:Boolean=Boolean])
Removes the event listener.
Parameter |
Type |
Description |
---|---|---|
eventType |
The registered event type. |
|
handler |
JavaScriptFunction |
The registered event handler. Can accept: File or JavaScript Function. |
captures |
This parameter is obsolete. (Optional) (default: false) |
undefined rotate ([direction:RotationDirection=RotationDirection])
Rotate the contents of the place gun.
Parameter |
Type |
Description |
---|---|---|
direction |
Which direction to rotate the contents (Optional) (default: RotationDirection.FORWARD) |
String toSource ()
Generates a string which, if executed, will return the PlaceGun.
String toSpecifier ()
Retrieves the object specifier.
Object of
Button.parent
CheckBox.parent
ComboBox.parent
EPS.parent
EPSText.parent
Event.parent
EventListener.parent
FormField.parent
Graphic.parent
GraphicLine.parent
Group.parent
Image.parent
ImportedPage.parent
ListBox.parent
MultiStateObject.parent
MutationEvent.parent
Oval.parent
PDF.parent
PICT.parent
PageItem.parent
Polygon.parent
RadioButton.parent
Rectangle.parent
SVG.parent
SignatureField.parent
Snippet.parent
SplineItem.parent
TextBox.parent
TextFrame.parent
WMF.parent
Document.placeGuns