[Visual Basic] [ Boolean
= ]imagekitcontrolname.ScrollImage(Dir As
ScrollDirConstants)
[Visual C++] [
BOOL = ]imagekitcontrolname.ScrollImage(long
Dir)
[VB.NET] [ Boolean =
]imagekitcontrolname.ScrollImage(Dir As
ImageKit10(A)Lib.ScrollDirConstants)
[C#.NET] [ bool =
]imagekitcontrolname.ScrollImage(ImageKit10(A)Lib.ScrollDirConstants
Dir)
* ImageKit10ALib refers to the ANSI version, ImageKit10Lib refers to the Unicode version.
Parameters
Name | Explanation |
---|---|
Dir | Sets the scroll direction. (0: Up and left, 1: Up, 2: Up and right, 3: Right, 4: Down and right, 5: Down, 6: Down and left, 7: Left) |
It is also possible to use the following constants (ikUpLeft = 0, ikUp = 1, ikUpRight = 2, ikRight = 3, ikDownRight = 4, ikDown = 5, ikDownLeft = 6, ikLeft = 7).
Return Value
Returns True (nonzero) if successful, otherwise returns False (0).
Explanation
The ScrollImage method scrolls the image according to the values set in the ScrollHeight and ScrollWidth properties.
The ScrollHeight and ScrollWidth properties must be set prior to executing this method. This method is only enabled when the image is displayed in actual size.