DiagramControl.ScrollToPoint(PointFloat, Nullable<HorzAlignment>, Nullable<VertAlignment>) Method
Scrolls the diagram to the specified point.
Namespace: DevExpress.XtraDiagram
Assembly: DevExpress.XtraDiagram.v25.2.dll
NuGet Package: DevExpress.Win.Diagram
Declaration
public void ScrollToPoint(
PointFloat diagramPoint,
HorzAlignment? horizontalAlignment = HorzAlignment.Center,
VertAlignment? verticalAlignment = VertAlignment.Center
)
Parameters
| Name | Type | Description |
|---|---|---|
| diagramPoint | PointFloat | A PointFloat object that represents the point to which to scroll the document. |
Optional Parameters
| Name | Type | Default | Description |
|---|---|---|---|
| horizontalAlignment | Nullable<HorzAlignment> | 2 | A HorzAlignment enumeration value that specifies how to align the point relative to the viewport. By default, Center. |
| verticalAlignment | Nullable<VertAlignment> | 2 | A VertAlignment enumeration value that specifies how to align the point relative to the viewport. By default, Center. |
See Also