Class PdfFreeTextAnnotation
PDF free annotation
Inherited Members
Namespace: IronPdf.Annotations
Assembly: IronPdf.dll
Syntax
public class PdfFreeTextAnnotation : PdfAnnotation
PdfFreeTextAnnotation is what IronPDF C# code uses for PDF annotations. It represents PDF free annotation.
PdfFreeTextAnnotation matters when an application needs to configure or invoke PDF annotations from C# code. The class encapsulates the related options and behavior in a single object that is set up once and reused across render or processing calls. Typical scenarios include batch generation pipelines, templated document workflows, and integration with existing C# document services.
To use PdfFreeTextAnnotation, instantiate or obtain it from the relevant entry point in the IronPDF C# API. Key properties include Appearance. Assign options or invoke methods on the instance to configure or perform the operation. The draw text and bitmap covers typical usage in C# end to end.
using IronPdf;
// Obtain PdfFreeTextAnnotation from the relevant entry point in the IronPDF API
void Configure(PdfFreeTextAnnotation instance)
{
var current = instance.Appearance;
}For the broader workflow, see the extract text and images guide in the IronPDF C# documentation. For broader context, the PDF annotations portion of the IronPDF C# API contains related types that work with PdfFreeTextAnnotation directly. PdfFreeTextAnnotation instances inherit additional members from PdfAnnotation that may be relevant in advanced scenarios. In application code, treat PdfFreeTextAnnotation as a configured object that is constructed once and reused across operations rather than instantiated per call. Configuration is generally idempotent: assigning the same property value twice has the same effect as assigning it once. For diagnostic purposes, inspect the relevant PdfFreeTextAnnotation property after each operation to confirm the configured state. See the constructors, properties, and methods tables below for the complete API surface of PdfFreeTextAnnotation. Application code typically obtains or instantiates a single PdfFreeTextAnnotation and shares it across multiple IronPDF operations rather than recreating it per call.
Constructors
PdfFreeTextAnnotation(Rectangle, Color, String, String, String, Boolean)
Declaration
public PdfFreeTextAnnotation(Rectangle rectangle, Color color, string name, string contents, string appearance, bool hidden)
Parameters
| Type | Name | Description |
|---|---|---|
| IronSoftware.Drawing.Rectangle | rectangle | |
| IronSoftware.Drawing.Color | color | |
| System.String | name | |
| System.String | contents | |
| System.String | appearance | |
| System.Boolean | hidden |
Properties
Appearance
The default appearance string to be used in formatting the text.
Declaration
public string Appearance { get; }
Property Value
| Type | Description |
|---|---|
| System.String |