Back to Devexpress

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

wpf-devexpress-dot-xpf-dot-diagram-dot-diagramcontrol-dot-scrolltopoint-x28-system-dot-windows-dot-point-system-dot-nullable-system-dot-windows-dot-horizontalalignment-system-dot-nullable-system-dot-windows-dot-verticalalignment-x29.md

latest2.4 KB
Original Source

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

Scrolls the diagram to the specified point.

Namespace : DevExpress.Xpf.Diagram

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

NuGet Package : DevExpress.Wpf.Diagram

Declaration

csharp
public void ScrollToPoint(
    Point diagramPoint,
    HorizontalAlignment? horizontalAlignment = HorizontalAlignment.Center,
    VerticalAlignment? verticalAlignment = VerticalAlignment.Center
)
vb
Public Sub ScrollToPoint(
    diagramPoint As Point,
    horizontalAlignment As HorizontalAlignment? = HorizontalAlignment.Center,
    verticalAlignment As VerticalAlignment? = VerticalAlignment.Center
)

Parameters

NameTypeDescription
diagramPointPoint

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

|

Optional Parameters

NameTypeDefaultDescription
horizontalAlignmentNullable<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

DiagramControl Class

DiagramControl Members

DevExpress.Xpf.Diagram Namespace