[]
        
(Showing Draft Content)

GrapeCity.Documents.Pdf.Annotations.ButtonAppearance

ButtonAppearance Class

Represents the appearance of a WidgetAnnotation when it is linked with a pushbutton or a signature field.

Inheritance
ButtonAppearance
Namespace: GrapeCity.Documents.Pdf.Annotations
Assembly: DS.Documents.Pdf.dll
Syntax
public class ButtonAppearance : PdfDictWrapper, IPdfDict, INotifyPropertyChanged
Public Class ButtonAppearance
    Inherits PdfDictWrapper
    Implements IPdfDict, INotifyPropertyChanged

Constructors

Name Description
ButtonAppearance()

Initializes a new instance of the ButtonAppearance class.

Properties

Name Description
Caption

Gets or sets the button's caption.

CaptionImageRelation

Gets or sets a value indicating how to position the button's caption relative to image.

DownAppearance

Gets the StateAppearance object defining the button attributes used when the mouse button is pressed within its active area.

Image

Gets or sets the button's image specified by the IXObject interface.

You can use PdfImageHandler to assign an image to this property, for example:

GrapeCity.Documents.Drawing.Image img = Image.FromFile("example.png");
btn.ButtonAppearance.DownAppearance.Image = doc.ImageHandlers.GetImageHandler(img);
ImageScale

Gets the ImageScale object defining attributes of image scaling.

RolloverAppearance

Gets the StateAppearance object defining the button attributes used when the user rolls the cursor into its active area without pressing the mouse button.

Events

Name Description
PropertyChanged

Occurs when a property value changes.

Extension Methods