ScrollControl.SetOffset(Point) Method

Sets a scrollable layout control's offset.

Namespace: DevExpress.Xpf.Core

Assembly: DevExpress.Xpf.Core.v20.1.dll

Declaration

public void SetOffset(
    Point offset
)
Public Sub SetOffset(
    offset As Point
)

Parameters

Name Type Description
offset Point

A System.Windows.Point structure that is a scrollable layout control's offset

Remarks

A content within a scrollable layout control can be scrolled via ScrollControl.ScrollBars, the drag scroll feature (see the ScrollControl.DragScrolling link) or mouse scroll button. The SetOffset method sets the scrolling offset in both vertical and horizontal dimensions.

To set a specific either vertical or horizontal offset, use the ScrollControl.VerticalOffset or ScrollControl.HorizontalOffset properties respectively. The ScrollControl.Offset property is used to obtain the current offset for a layout control.

Implements

DevExpress.Xpf.Core.IScrollControl.SetOffset(Point)
See Also