Skip to main content
All docs
V24.2

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

PdfButtonWidgetIconOptions.FitToAnnotationBounds Property

Gets or sets whether to fit the button icon in the widget annotation bounds or in its borders.

Namespace: DevExpress.Pdf

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

NuGet Package: DevExpress.Pdf.Core

#Declaration

public bool FitToAnnotationBounds { get; set; }

#Property Value

Type Description
Boolean

true to fit the button icon in the annotation bounds; false to fit the icon in the annotation borders.

#Property Paths

You can access this nested property as listed below:

Object Type Path to FitToAnnotationBounds
PdfButtonWidgetFacade
.IconOptions .FitToAnnotationBounds

#Remarks

Use this property to define an area in which to fit the button icon. Set the property to true to fit the icon in the widget bounds. In this case, the widget borders can overlap the icon.

true

If the property is set to false, the maximum icon size depends on the border width (the PdfWidgetFacade.BorderWidth property).

true

See Also