Skip to main content
All docs
V25.1
  • 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.v25.1.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