Back to Devexpress

PdfDocumentPosition.Point Property

officefileapi-devexpress-dot-pdf-dot-pdfdocumentposition.md

latest4.0 KB
Original Source

PdfDocumentPosition.Point Property

Returns the hit point coordinates in a PDF.

Namespace : DevExpress.Pdf

Assembly : DevExpress.Pdf.v25.2.Core.dll

NuGet Package : DevExpress.Pdf.Core

Declaration

csharp
public PdfPoint Point { get; }
vb
Public ReadOnly Property Point As PdfPoint

Property Value

TypeDescription
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

csharp
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

csharp
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

csharp
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

vb
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

vb
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

vb
Dim position = pdfViewer.GetDocumentPosition(e.Location, True)
    currentCoordinates = New GraphicsCoordinates(position.PageNumber - 1, position.Point, position.Point)
End Sub

See Also

PdfDocumentPosition Class

PdfDocumentPosition Members

DevExpress.Pdf Namespace