[]
        
(Showing Draft Content)

GrapeCity.Documents.Pdf.Annotations.ButtonAppearance

Class ButtonAppearance

Namespace
GrapeCity.Documents.Pdf.Annotations
Assembly
GcDocs.Pdf.dll

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

public class ButtonAppearance : PdfDictWrapper, IPdfDict, INotifyPropertyChanged
Inheritance
object
ButtonAppearance
Implements
System.ComponentModel.INotifyPropertyChanged
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
Extension Methods

Constructors

ButtonAppearance()

Initializes a new instance of the ButtonAppearance class.

public ButtonAppearance()

Properties

Caption

Gets or sets the button's caption.

public string Caption { get; set; }

Property Value

string

CaptionImageRelation

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

public CaptionImageRelation CaptionImageRelation { get; set; }

Property Value

CaptionImageRelation

DownAppearance

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

public StateAppearance DownAppearance { get; }

Property Value

StateAppearance

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);
public IXObject Image { get; set; }

Property Value

IXObject
See Also

ImageScale

Gets the ImageScale object defining attributes of image scaling.

public ImageScale ImageScale { get; }

Property Value

ImageScale

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.

public StateAppearance RolloverAppearance { get; }

Property Value

StateAppearance

Events

PropertyChanged

Occurs when a property value changes.

public event PropertyChangedEventHandler PropertyChanged

Event Type

System.ComponentModel.PropertyChangedEventHandler