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
#Parameters
Name | Type | Description |
---|---|---|
offset | Point | A System. |
#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.