officefileapi-devexpress-dot-pdf-dot-pdfwidgetfacade.md
Gets or sets the widget’s bounds on the page.
Namespace : DevExpress.Pdf
Assembly : DevExpress.Pdf.v25.2.Core.dll
NuGet Package : DevExpress.Pdf.Core
public PdfRectangle Rectangle { get; set; }
Public Property Rectangle As PdfRectangle
| Type | Description |
|---|---|
| PdfRectangle |
A rectangle that defines the widget’s location.
|
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the Rectangle 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.
pdf-document-api-replace-form-field-with-image/CS/ReplaceFormFieldWithImage/Program.cs#L24
{
PdfRectangle rect = widget.Rectangle;
PdfPage page = processor.Document.Pages[widget.PageNumber - 1];
pdf-document-api-replace-form-field-with-image/VB/ReplaceFormFieldWithImage/Program.vb#L22
For Each widget As PdfWidgetFacade In formField
Dim rect As PdfRectangle = widget.Rectangle
Dim page As PdfPage = processor.Document.Pages(widget.PageNumber - 1)
See Also