Skip to main content

ScrollControl.SetOffset(Point) Method

Sets a scrollable layout control’s offset.

Namespace: DevExpress.Xpf.Core

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

NuGet Package: DevExpress.Wpf.Core

Declaration

public void SetOffset(
    Point offset
)

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.

See Also