Back to Devexpress

ScrollControl.VerticalOffset Property

wpf-devexpress-dot-xpf-dot-core-dot-scrollcontrol-3c71bf93.md

latest2.5 KB
Original Source

ScrollControl.VerticalOffset Property

Gets or sets the vertical 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.v25.2.dll

NuGet Package : DevExpress.Wpf.Core

Declaration

csharp
public double VerticalOffset { get; set; }
vb
Public Property VerticalOffset As Double

Property Value

TypeDescription
Double

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

|

Remarks

A 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 VerticalOffset property specifies the vertical scrolling offset relative to the control’s top left corner.

To set a horizontal scrolling offset, use the ScrollControl.HorizontalOffset 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

HorizontalOffset

SetOffset(Point)

Offset

ScrollBars

DragScrolling

ScrollControl Class

ScrollControl Members

DevExpress.Xpf.Core Namespace