Back to Devexpress

PdfWidgetFacade.Rectangle Property

officefileapi-devexpress-dot-pdf-dot-pdfwidgetfacade.md

latest2.3 KB
Original Source

PdfWidgetFacade.Rectangle Property

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

Declaration

csharp
public PdfRectangle Rectangle { get; set; }
vb
Public Property Rectangle As PdfRectangle

Property Value

TypeDescription
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

csharp
{
    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

vb
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

PdfWidgetFacade Class

PdfWidgetFacade Members

DevExpress.Pdf Namespace