Back to Devexpress

PdfRectangle.TopLeft Property

officefileapi-devexpress-dot-pdf-dot-pdfrectangle-3a8b019a.md

latest2.1 KB
Original Source

PdfRectangle.TopLeft Property

Gets the PdfRectangle‘s top left coordinate.

Namespace : DevExpress.Pdf

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

NuGet Package : DevExpress.Pdf.Core

Declaration

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

Property Value

TypeDescription
PdfPoint

A PdfPoint structure, representing the top left coordinate of the PDF rectangle.

|

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the TopLeft 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.

office-file-api-ai-implementation/CS/Controllers/SummarizeController.cs#L76

csharp
var firstPageBox = pdfDocumentProcessor.Document.Pages[0].CropBox;
PdfDocumentPosition pagePosition1 = new PdfDocumentPosition(1, firstPageBox.TopLeft);
PdfDocumentPosition pagePosition2 = new PdfDocumentPosition(1, firstPageBox.BottomRight);

See Also

BottomRight

PdfRectangle Class

PdfRectangle Members

DevExpress.Pdf Namespace