![]() |
![]() |
PSelect(long x, long y);
long x;
x-coordinate of the object, relative to the current zero point number in twipslong y;
y-coordinate of the object, relative to the current zero point in twips
PSelect(long drawOrder);
Using the location method of selection. Selecting an object with x and y coordinates (the location method) is identical to selecting the object with the mouse. Your choice of allowable coordinates depends upon the type of object:long drawOrder;
The drawing order number for the object.
No drawing order for inline graphics. Inline graphics are not assigned a drawing order and must be selected using the location method.
Selecting text. To select (highlight) text, use the PTextSelect command.
Layout view only. The PSelect command works only in layout view.
Example. The following example selects the second object drawn.
PSelect(2);
The following example selects the object positioned 1 inch to the right on the x axis and 4 inches down on the y-axis.
PSelect(twips("1i"), twips("4i"));
The PGetSelectInfo and PGetSelectList queries
![]() |
Comments or suggestions? Contact Adobe Developer Support |