Show / Hide Table of Contents

Class TextWidget

An object representing a Text Box used in a PDF Form.

Inheritance
System.Object
Annot
Widget
TextWidget
Implements
System.IDisposable
Inherited Members
Widget.Create(SDFDoc, Rect, Field)
Widget.GetField()
Widget.GetHighlightingMode()
Widget.SetHighlightingMode(Widget.HighlightingMode)
Widget.GetAction()
Widget.SetAction(Action)
Widget.GetBorderColorCompNum()
Widget.GetBorderColor()
Widget.SetBorderColor(ColorPt, Int32)
Widget.GetBackgroundColorCompNum()
Widget.GetBackgroundColor()
Widget.SetBackgroundColor(ColorPt, Int32)
Widget.GetStaticCaptionText()
Widget.SetStaticCaptionText(String)
Widget.GetRolloverCaptionText()
Widget.SetRolloverCaptionText(String)
Widget.GetMouseDownCaptionText()
Widget.SetMouseDownCaptionText(String)
Widget.GetStaticIcon()
Widget.SetStaticIcon(Obj)
Widget.GetRolloverIcon()
Widget.SetRolloverIcon(Obj)
Widget.GetMouseDownIcon()
Widget.SetMouseDownIcon(Obj)
Widget.GetScaleType()
Widget.SetScaleType(Widget.ScaleType)
Widget.GetIconCaptionRelation()
Widget.SetIconCaptionRelation(Widget.IconCaptionRelation)
Widget.GetScaleCondition()
Widget.SetScaleCondition(Widget.ScaleCondition)
Widget.GetHIconLeftOver()
Widget.SetHIconLeftOver(Double)
Widget.GetVIconLeftOver()
Widget.SetVIconLeftOver(Double)
Widget.GetFitFull()
Widget.SetFitFull(Boolean)
Widget.SetTextColor(ColorPt, Int32)
Widget.GetTextColor()
Widget.GetTextColorCompNum()
Widget.SetFontSize(Double)
Widget.GetFontSize()
Widget.SetFont(Font)
Widget.GetFont()
Annot.Dispose()
Annot.Dispose(Boolean)
Annot.GetHandleInternal()
Annot.GetRefHandleInternal()
Annot.CreateInternal(IntPtr, Object)
Annot.Create(SDFDoc, Annot.Type, Rect)
Annot.op_Assign(Annot)
Annot.Equals(Object)
Annot.IsValid()
Annot.GetSDFObj()
Annot.GetType()
Annot.IsMarkup()
Annot.GetRect()
Annot.GetVisibleContentBox()
Annot.SetRect(Rect)
Annot.GetContents()
Annot.SetContents(String)
Annot.GetPage()
Annot.SetPage(Page)
Annot.GetUniqueID()
Annot.SetUniqueID(String)
Annot.GetDate()
Annot.SetDate(Date)
Annot.GetFlag(Annot.Flag)
Annot.SetFlag(Annot.Flag, Boolean)
Annot.GetBorderStyle()
Annot.SetBorderStyle(Annot.BorderStyle)
Annot.GetAppearance()
Annot.GetAppearance(Annot.AnnotationState)
Annot.GetAppearance(Annot.AnnotationState, String)
Annot.SetAppearance(Obj)
Annot.SetAppearance(Obj, Annot.AnnotationState)
Annot.SetAppearance(Obj, Annot.AnnotationState, String)
Annot.RemoveAppearance()
Annot.RemoveAppearance(Annot.AnnotationState)
Annot.RemoveAppearance(Annot.AnnotationState, String)
Annot.Flatten(Page)
Annot.GetActiveAppearanceState()
Annot.SetActiveAppearanceState(String)
Annot.GetColorAsRGB()
Annot.GetColorAsCMYK()
Annot.GetColorAsGray()
Annot.GetColorCompNum()
Annot.SetColor(ColorPt, Int32)
Annot.SetColor(ColorPt)
Annot.GetStructParent()
Annot.SetStructParent(Int32)
Annot.GetOptionalContent()
Annot.SetOptionalContent(Obj)
Annot.Resize(Rect)
Annot.GetRotation()
Annot.SetRotation(Int32)
Annot.RefreshAppearance()
Annot.GetCustomData(String)
Annot.SetCustomData(String, String)
Annot.DeleteCustomData(String)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: pdftron.PDF.Annots
Assembly: PDFTronDotNet.dll
Syntax
public class TextWidget : Widget, IDisposable

Constructors

TextWidget(Annot)

Creates a Text Widget annotation and initialize it using given annotation object.

Declaration
public TextWidget(Annot ann)
Parameters
Type Name Description
Annot ann

the annot

Remarks

The constructor does not copy any data, but is instead the logical equivalent of a type cast.

Exceptions
Type Condition
PDFNetException

PDFNetException the PDFNet exception

TextWidget(Obj)

Creates a Text Widget annotation and initialize it using given Cos/SDF object.

Declaration
public TextWidget(Obj d)
Parameters
Type Name Description
Obj d

The object to use to initialize the Text Widget

Remarks

The constructor does not copy any data, but is instead the logical equivalent of a type cast.

Methods

Create(PDFDoc, Rect)

Creates a new Text Widget annotation, in the specified document.

Declaration
public static TextWidget Create(PDFDoc doc, Rect pos)
Parameters
Type Name Description
PDFDoc doc

The document to which the annotation is added.

Rect pos

A rectangle specifying the annotation's bounds, specified in user space coordinates.

Returns
Type Description
TextWidget

A newly created blank Text Widget annotation.

Exceptions
Type Condition
PDFNetException

PDFNetException the PDFNet exception

Create(PDFDoc, Rect, Field)

Creates a new Text Widget annotation, in the specified document.

Declaration
public static TextWidget Create(PDFDoc doc, Rect pos, Field field)
Parameters
Type Name Description
PDFDoc doc

The document to which the annotation is added.

Rect pos

A rectangle specifying the annotation's bounds, specified in user space coordinates.

Field field

the field for which to create a Text Widget

Returns
Type Description
TextWidget

A newly created blank Widget annotation.

Exceptions
Type Condition
PDFNetException

PDFNetException the PDFNet exception

Create(PDFDoc, Rect, String)

Creates a new Text Widget annotation, in the specified document.

Declaration
public static TextWidget Create(PDFDoc doc, Rect pos, string field_name)
Parameters
Type Name Description
PDFDoc doc

A document to which the annotation is added.

Rect pos

A rectangle specifying the annotation's bounds, specified in user space coordinates.

System.String field_name

The name of the field for which to create a Text widget

Returns
Type Description
TextWidget

A newly created blank Text Widget annotation.

Exceptions
Type Condition
PDFNetException

PDFNetException the PDFNet exception

GetText()

Retrieves the text content of the Text Widget.

Declaration
public string GetText()
Returns
Type Description
System.String

The Text Widget contents

Exceptions
Type Condition
PDFNetException

PDFNetException the PDFNet exception

SetText(String)

Set the text content of the Text Widget.

Declaration
public void SetText(string text)
Parameters
Type Name Description
System.String text

The text tp be displayed in the Text Widget

Exceptions
Type Condition
PDFNetException

PDFNetException the PDFNet exception

Implements

System.IDisposable
Back to top Generated by DocFX