MoveRectIntoView Method
Moves the specified rectangle into the the viewer control window.
expression.MoveRectIntoView(Left, Top, Right, Bottom)
*expression * Required. An expression that returns an MiDocView object.
*Left * Required Long. Specifies the distance in pixels from the left edge of the containing image to the left edge of the rectangle.
*Top * Required Long. Specifies the distance in pixels from the top edge of the containing image to the top edge of the rectangle.
*Right * Required Long. Specifies the distance in pixels from the left edge of the containing image to the right edge of the rectangle.
*Bottom * Required Long. Specifies the distance in pixels from the top edge of the containing image to the bottom edge of the rectangle.
Remarks
All of the rectangle objects and properties in the Microsoft Office Document Imaging 2003 object model work as follows:
- The Top and Bottom properties represent the distance in pixels from the top edge of the containing image.
- The Left and Right properties represent the distance in pixels from the left edge of the containing image.
Example
The following example moves the rectangle with the specified coordinates into the the viewer control window.
Sub TestMoveRectIntoView()
Dim lngLeft As Long, lngTop As Long
Dim lngRight As Long, lngBottom As Long
lngLeft = 829
lngTop = 591
lngRight = 1337
lngBottom = 665
MiDocView1.MoveRectIntoView lngLeft, lngTop, lngRight, lngBottom
End Sub
Applies to | MiDocView Object