[]
Represents the appearance of a WidgetAnnotation when it is linked with a pushbutton or a signature field.
public class ButtonAppearance : PdfDictWrapper, IPdfDict, INotifyPropertyChanged
Initializes a new instance of the ButtonAppearance class.
public ButtonAppearance()
Gets or sets the button's caption.
public string Caption { get; set; }
Gets or sets a value indicating how to position the button's caption relative to image.
public CaptionImageRelation CaptionImageRelation { get; set; }
Gets the StateAppearance object defining the button attributes used when the mouse button is pressed within its active area.
public StateAppearance DownAppearance { get; }
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);
public IXObject Image { get; set; }
Gets the ImageScale object defining attributes of image scaling.
public ImageScale ImageScale { get; }
Gets the StateAppearance object defining the button attributes used when the user rolls the cursor into its active area without pressing the mouse button.
public StateAppearance RolloverAppearance { get; }
Occurs when a property value changes.
public event PropertyChangedEventHandler PropertyChanged