The full set of properties and methods for the interfaces described in this manual can be used in scripts in the fxitems.xml and fxmaster.xml files. Some that will be particularly useful are:
Application.DropPoint: returns a Range object corresponding to the point at which the user drops the script into the document. This point can be made the document's selection as follows:
var Dp=Application.DropPoint; Dp.Select();
Selection.InsertElement, Selection.CanInsert:
InsertElement inserts the specified element. CanInsert can be used to check if the insertion would be valid.
See also the section on the FX interface.
Copyright © SoftQuad Software Inc. 1999