Docotic.Pdf Library Help > BitMiracle.Docotic.Pdf > PdfPage Class > PdfPage Methods > AddTextAnnotation Method > AddTextAnnotation Method (Double, Double, String, String)
Adds the new text annotation to the PdfPage.

Namespace:  BitMiracle.Docotic.Pdf
Assembly:  BitMiracle.Docotic.Pdf (in BitMiracle.Docotic.Pdf.dll)

Syntax

C#
public PdfTextAnnotation AddTextAnnotation(
	double x,
	double y,
	string title,
	string contents
)
VB
Public Function AddTextAnnotation ( 
	x As Double,
	y As Double,
	title As String,
	contents As String
) As PdfTextAnnotation

Parameters

x
Type: System.Double
The x-coordinate of the upper-left corner of the text annotation.
y
Type: System.Double
The y-coordinate of the upper-left corner of the text annotation.
title
Type: System.String
The title for the annotation.
contents
Type: System.String
The contents of the annotation.

Return Value

Type: PdfTextAnnotation
The newly created PdfTextAnnotation object.

See Also