Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

ScrollControl.SetOffset(Point) Method

Sets a scrollable layout control’s offset.

Namespace: DevExpress.Xpf.Core

Assembly: DevExpress.Xpf.Core.v24.2.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