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

DiagramControl.ScrollToPoint(Point, Nullable<HorizontalAlignment>, Nullable<VerticalAlignment>) Method

Scrolls the diagram to the specified point.

Namespace: DevExpress.Xpf.Diagram

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

NuGet Package: DevExpress.Wpf.Diagram

#Declaration

public void ScrollToPoint(
    Point diagramPoint,
    HorizontalAlignment? horizontalAlignment = HorizontalAlignment.Center,
    VerticalAlignment? verticalAlignment = VerticalAlignment.Center
)

#Parameters

Name Type Description
diagramPoint Point

A System.Windows.Point object that represents the point to which to scroll the document.

#Optional Parameters

Name Type Default Description
horizontalAlignment Nullable<HorizontalAlignment> 1

A System.Windows.HorizontalAlignment enumeration value that specifies how to align the point relative to the viewport. By default, Center.

verticalAlignment Nullable<VerticalAlignment> 1

A System.Windows.VerticalAlignment enumeration value that specifies how to align the point relative to the viewport. By default, Center.

See Also