Namespace TallComponents.PDF.Annotations.Widgets
Class Widget
A PDF form field Widget.
You retrieve an existing Widget from the Widgets property of the Field class or Page class.
Syntax
public class Widget : Annotation
Constructors
Widget()
Create a new PDF form field Widget.
Widget(Double,Double,Double,Double)
Create a new PDF form field Widget.
Properties
DeviceColor BackgroundColor
The background color of this widget.
DeviceColor BorderColor
The color of the border of this widget.
Field Field
The associated Field.
Font Font
The text font.
Double FontSize
The font size.
ActionCollection GotFocusActions
The actions executed when the widget recieves the input focus.
HorizontalAlignment HorizontalAlignment
The horiontal text alignment
Boolean Invisible
This annotation will not be visible in the pdf-viewer.
ActionCollection LostFocusActions
The actions executed when the widget loses the input focus.
ActionCollection MouseDownActions
The actions executed when a mouse/pointing device goes down in the widget.
ActionCollection MouseEnterActions
The actions executed when a mouse/pointing device enters the widget.
ActionCollection MouseExitActions
The actions executed when a mouse/pointing device leaves the widget.
ActionCollection MouseUpActions
The actions executed when a mouse/pointing device goes up.
Orientation Orientation
Orientation of this widget in degrees. Default is Rotate0.
WidgetPersistency Persistency
The widget's persistency when this document is written.
DeviceColor TextColor
The text color
VerticalAlignment VerticalAlignment
The vertical text aligment
Methods
Object Accept(AnnotationVisitor,Object)
Accept this annotation.
Void Flatten(Canvas,Boolean)
Flatten the annotation as static content to the given canvas.
Void Flatten(Canvas,FlattenOptions)
Flatten the annotation as static content to the given canvas.
Boolean TestOverflow(String)
Determines whether a given text will "overflow", i.e. whether scrolling is needed
to display the entire text.
String ToString()
Obtains the String representation of this instance.
Void UpdateAppearance()
This updates the appearance of this widget.