method Surface.MoveCorner (From as ContentAlignmentEnum, To as ContentAlignmentEnum)
Moves or scrolls the surface.

TypeDescription
From as ContentAlignmentEnum A ContentAlignmentEnum expression that indicates the point to move the surface from.
To as ContentAlignmentEnum A ContentAlignmentEnum expression that indicates the point to move the surface to.

The MoveCorner method scrolls the surface from a corner to another. The MovePoint method of the control moves the surface from the one point to another. The ScrollTo method ensures that the element fits the surface's visible area. The control's ScrollPos, ScrollX and ScrollY properties specify the surface's scroll position. Use the ScrollTo method of the control to scroll the surface at specified position.