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

Scrolls the diagram to the specified point.

Namespace: DevExpress.Xpf.Diagram

Assembly: DevExpress.Xpf.Diagram.v20.1.dll

Declaration

public void ScrollToPoint(
    Point diagramPoint,
    HorizontalAlignment? horizontalAlignment,
    VerticalAlignment? verticalAlignment
)
Public Sub ScrollToPoint(
    diagramPoint As Point,
    horizontalAlignment As HorizontalAlignment?,
    verticalAlignment As VerticalAlignment?
)

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