officefileapi-devexpress-dot-pdf-dot-pdfdocumentposition.md
Returns the hit point coordinates in a PDF.
Namespace : DevExpress.Pdf
Assembly : DevExpress.Pdf.v25.2.Core.dll
NuGet Package : DevExpress.Pdf.Core
public PdfPoint Point { get; }
Public ReadOnly Property Point As PdfPoint
| Type | Description |
|---|---|
| PdfPoint |
A PdfPoint structure.
|
The following code snippets (auto-collected from DevExpress Examples) contain references to the Point property.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.
wpf-pdf-viewer-draw-a-rectangle-over-a-document/CS/MainWindow.xaml.cs#L30
private void PdfSelectionBehavior_PdfSelectionChanged(object sender, PdfSelectionChangedEventArgs args) {
PdfPoint p1 = args.StartPosition.Point;
PdfPoint p2 = args.EndPosition.Point;
how-to-custom-draw-in-pdf-viewer/CS/PDF_Viewer/Form1.cs#L157
var position = pdfViewer.GetDocumentPosition(e.Location, true);
currentCoordinates = new GraphicsCoordinates(position.PageNumber - 1, position.Point, position.Point);
}
winforms-pdf-viewer-redaction-annotations/CS/DXApplication1/Form1.cs#L145
var position = pdfViewer.GetDocumentPosition(e.Location, true);
currentCoordinates = new GraphicsCoordinates(position.PageNumber - 1, position.Point, position.Point);
}
wpf-pdf-viewer-draw-a-rectangle-over-a-document/VB/MainWindow.xaml.vb#L20
Private Sub PdfSelectionBehavior_PdfSelectionChanged(ByVal sender As Object, ByVal args As PdfSelectionChangedEventArgs)
Dim p1 As PdfPoint = args.StartPosition.Point
Dim p2 As PdfPoint = args.EndPosition.Point
how-to-custom-draw-in-pdf-viewer/VB/PDF_Viewer/Form1.vb#L159
Dim position = pdfViewer.GetDocumentPosition(e.Location, True)
currentCoordinates = New GraphicsCoordinates(position.PageNumber - 1, position.Point, position.Point)
End Sub
winforms-pdf-viewer-redaction-annotations/VB/DXApplication1/Form1.vb#L128
Dim position = pdfViewer.GetDocumentPosition(e.Location, True)
currentCoordinates = New GraphicsCoordinates(position.PageNumber - 1, position.Point, position.Point)
End Sub
See Also