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.HorizontalOffset Property

Gets or sets the horizontal scrolling offset of a scrollable ScrollControl class descendant control, relative to its top left corner. This is a dependency property.

Namespace: DevExpress.Xpf.Core

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

NuGet Package: DevExpress.Wpf.Core

#Declaration

public double HorizontalOffset { get; set; }

#Property Value

Type Description
Double

A Double value that is the horizontal scrolling offset of a scrollable ScrollControl class descendant control.

#Remarks

The content within a scrollable layout control (the ScrollControl class descendant) can be scrolled via ScrollControl.ScrollBars, the drag scroll feature (see the ScrollControl.DragScrolling link) or mouse scroll button. The HorizontalOffset property specifies the horizontal scrolling offset relative to the control’s top left corner.

To set a vertical scrolling offset, use the ScrollControl.VerticalOffset property instead. Alternatively, pass the System.Windows.Point structure object to the ScrollControl.SetOffset method to specify both of the offsets.

The current offset can be obtained via the ScrollControl.Offset property.

See Also