SetPosition method
The SetPosition method sets the position of the runtime field or character object on the page. This method is useful for making corrections to zonal recognition on a page.
- For field objects, the position is defined by the Position variable
of the field.
<V n="Position">0,0,0,0</V> - For character objects, the position is defined by the cr attribute
of the character.
<C cn="10" cr="0,0,0,0">83</C>
Syntax
- VBScript
oDCO.SetPosition (nLeft as Long, nTop as Long, nRight as Long, nBottom as Long) as Boolean
- C#
bool SetPosition(int nLeft, int nTop, int nRight, int nBottom)
Applies to
Field or character objects.
Arguments
- nLeft
- Distance from the left side of the page to the left edge of the object (in pixels)
- nTop
- Distance from the top of the page to the top edge of the object (in pixels)
- nRight
- Distance from the left side of the page to the right edge of the object (in pixels)
- nBottom
- Distance from the top of the page to the bottom edge of the object (in pixels)
Returns
Returns true if successful; returns false if unsuccessful.Example
- VBScript
Call oDCO.SetPosition (115, 450, 138, 400)