Documents for PDF .NET Edition
GrapeCity.Documents.Pdf Assembly / GrapeCity.Documents.Pdf.Annotations Namespace / WidgetAnnotation Class / TextFormat Property

In This Topic
    TextFormat Property (WidgetAnnotation)
    In This Topic
    Gets or sets the GrapeCity.Documents.Text.TextFormat object that specifies the font, font size and color used to format the content of this annotation.

    Note that only Font, FontSize and ForeColor will be used when building appearance streams, all other TextFormat properties will be ignored. Note also that if a property is specified on DefaultAppearance, the corresponding TextFormat property will also be ignored.

    This property is deprecated, DefaultAppearance should be used instead.

    An appropriate font can be found for example by using methods such as GrapeCity.Documents.Text.FontCollection.FindFamilyName on the GrapeCity.Documents.Text.FontCollection.SystemFonts collection.

    Syntax
    'Declaration
     
    Public Property TextFormat As TextFormat
    public TextFormat TextFormat {get; set;}
    See Also