Namespace: PdfSharp.Pdf.Annotations
Represents a text annotation.
public sealed class PdfWidgetAnnotation : PdfAnnotation, System.ICloneable, System.Collections.Generic.IEnumerable`1[[System.Collections.Generic.KeyValuePair`2[[System.String, System.Private.CoreLib, Version=6.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[PdfSharp.Pdf.PdfItem, PdfSharp, Version=0.1.3.0, Culture=neutral, PublicKeyToken=null]], System.Private.CoreLib, Version=6.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Collections.IEnumerable
Inheritance Object → PdfItem → PdfObject → PdfDictionary → PdfAnnotation → PdfWidgetAnnotation
Implements ICloneable, IEnumerable<KeyValuePair<String, PdfItem>>, IEnumerable
Gets or sets the background color of the field.
public XColor BackColor { get; set; }
Gets or sets the border color of the field.
public XColor BorderColor { get; set; }
Gets or sets the Rotation of this Widget in counter-clockwise direction.
public int Rotation { get; set; }
Gets or sets the placement of the widget’s caption relative to it’s icon
Only applies to PdfPushButtonFields
public CaptionPosition CaptionPlacement { get; set; }
Gets or sets the annotation’s highlighting mode, the visual effect to be used when the mouse button is pressed or held down inside its active area
public HighlightingMode Highlighting { get; set; }
Gets or sets the normal Caption of this Annotation.
Only applies to PdfButtonFields
public string NormalCaption { get; set; }
Remarks:
see PdfReference 1.7, Chapter 12.5.6.19: Widget Annotations
Gets or sets the rollover Caption of this Annotation which shall be displayed
when the user rolls the cursor into its active area without pressing the mouse button.
Only applies to PdfPushButtonFields
public string RolloverCaption { get; set; }
Gets or sets the down Caption of this Annotation which shall be displayed
when the mouse button is pressed within its active area.
Only applies to PdfPushButtonFields
public string DownCaption { get; set; }
The widget annotation’s normal icon, which shall be displayed when it is not interacting with the user. Only applies to PdfPushButtonFields
public PdfFormXObject NormalIcon { get; set; }
The widget annotation’s rollover icon, which shall be displayed when the user rolls the cursor into its active area without pressing the mouse button. Only applies to PdfPushButtonFields
public PdfFormXObject RolloverIcon { get; set; }
The widget annotation’s alternate (down) icon, which shall be displayed when the mouse button is pressed within its active area. Only applies to PdfPushButtonFields
public PdfFormXObject DownIcon { get; set; }
Get the parent-field of this Widget, if it is the child of a PdfAcroField.
public PdfObject ParentField { get; internal set; }
Gets or sets the border-properties of this Annotation
public PdfAnnotationBorder Border { get; set; }
Gets or sets the annotation flags of this instance.
public PdfAnnotationFlags Flags { get; set; }
Gets or sets the PdfAnnotations object that this annotation belongs to.
public PdfAnnotations Parent { get; set; }
Gets or sets the annotation rectangle, defining the location of the annotation on the page in default user space units.
public PdfRectangle Rectangle { get; set; }
Gets or sets the page for this Annotation
public PdfPage Page { get; set; }
Gets or sets the text label to be displayed in the title bar of the annotation’s pop-up window when open and active. By convention, this entry identifies the user who added the annotation.
public string Title { get; set; }
Gets or sets text representing a short description of the subject being addressed by the annotation.
public string Subject { get; set; }
Gets or sets the text to be displayed for the annotation or, if this type of annotation does not display text, an alternate description of the annotation’s contents in human-readable form.
public string Contents { get; set; }
Gets or sets the color representing the components of the annotation. If the color has an alpha value other than 1, it is ignored. Use property Opacity to get or set the opacity of an annotation.
public XColor Color { get; set; }
Gets or sets the constant opacity value to be used in painting the annotation. This value applies to all visible elements of the annotation in its closed state (including its background and border) but not to the popup window that appears when the annotation is opened.
public double Opacity { get; set; }
Gets the dictionary containing the elements of this dictionary.
public DictionaryElements Elements { get; }
Gets or sets the PDF stream belonging to this dictionary. Returns null if the dictionary has no stream. To create the stream, call the CreateStream function.
public PdfStream Stream { get; set; }
Gets the PdfDocument this object belongs to.
public PdfDocument Owner { get; }
Indicates whether the object is an indirect object.
public bool IsIndirect { get; }
Gets the PdfInternals object of this document, that grants access to some internal structures which are not part of the public interface of PdfDocument.
public PdfObjectInternals Internals { get; }
Gets the indirect reference of this object. If the value is null, this object is a direct object.
public PdfReference Reference { get; internal set; }
Gets the indirect reference of this object. Throws if it is null.
public PdfReference ReferenceNotNull { get; }
InvalidOperationException
The indirect reference must be not null here.
Initializes a new instance of the PdfWidgetAnnotation with the specified dictionary.
public PdfWidgetAnnotation(PdfDictionary dict)
dict
PdfDictionary
internal void PrepareForSave()