[]
        
(Showing Draft Content)

GrapeCity.Documents.Pdf.Annotations.DefaultAppearance

Class DefaultAppearance

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

Represents the default appearance of an annotation.

public class DefaultAppearance
Inheritance
object
DefaultAppearance
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()

Properties

Font

Gets or sets the Font object.

In a newly created document the value of this property is null. If the value has not been set when the document is saved (and for fields, the owner field has been added to AcroForm), a default value is automatically assigned depending on the type of the current object's owner:

  • TextField, ComboBoxField, CombTextBoxField, ListBoxField, PushButtonThe default font is Helvetica, 9pt, Black.
  • CheckBoxField, RadioButtonFieldThe default font is ZapfDingbats, 0 (meaning auto-size), Black. (Note that for these field types ZapfDingbats will always be used regardless of the current setting.)
  • The default font is Helvetica, 9pt, Black.

When setting this property, you may use FindFamilyName(string, bool, bool) or other FontCollection methods to find a suitable font.

public Font Font { get; set; }

Property Value

Font

FontSize

Gets or sets the font size in points.

In a newly created document the value of this property is null. If the value has not been set when the document is saved (and for fields, the owner field has been added to AcroForm), a default value is automatically assigned depending on the type of the current object's owner:

  • TextField, ComboBoxField, CombTextBoxField, ListBoxField, PushButtonThe default font is Helvetica, 9pt, Black.
  • CheckBoxField, RadioButtonFieldThe default font is ZapfDingbats, 0 (meaning auto-size), Black. (Note that for these field types ZapfDingbats will always be used regardless of the current setting.)
  • The default font is Helvetica, 9pt, Black.
public float? FontSize { get; set; }

Property Value

float?

ForeColor

Gets or sets the foreground color.

In a newly created document the value of this property is null. If the value has not been set when the document is saved (and for fields, the owner field has been added to AcroForm), a default value is automatically assigned depending on the type of the current object's owner:

  • TextField, ComboBoxField, CombTextBoxField, ListBoxField, PushButtonThe default font is Helvetica, 9pt, Black.
  • CheckBoxField, RadioButtonFieldThe default font is ZapfDingbats, 0 (meaning auto-size), Black. (Note that for these field types ZapfDingbats will always be used regardless of the current setting.)
  • The default font is Helvetica, 9pt, Black.
public Color? ForeColor { get; set; }

Property Value

System.Drawing.Color?

Text

Gets or sets the text representing the appearance as it will be stored in a PDF stream (e.g. "/DF0 10 Tf 0 0 0 rg").

Please see the PDF specification for details.

public string Text { get; set; }

Property Value

string