ScrollPositionY Property

Returns or sets the vertical scroll position in pixels.

Applies To

Image Edit control

Syntax

object.ScrollPositionY[=integer ]

Data Type

Long

Remarks

Setting the ScrollPositionY property causes the displayed image to scroll vertically to the pixel position specified.

To set the scroll position prior to displaying an image, the ScrollPositionX and ScrollPositionY properties must be set in the Load event.

When the image is first displayed using the Display method, this property is set to 0 by default.

When the AutoRefresh property is set to True, changing the ScrollPositionY property causes the displayed image to be refreshed automatically.

Available at run-time as read-and-write.

See Also

AutoRefresh property

Display method

Image topics in Imaging Concepts

Load event

Scroll event

ScrollBars property

ScrollImage method

ScrollPositionX property