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