Represents a note annotation.

For a list of all members of this type, see Note Members


System.Object
   ceTe.DynamicPDF.PageElement
public class Note : PageElement, IAnnotation, IArea, ICoordinate

Remarks

This class can be used to place a note annotation on the PDF.

Example

The following example will place an icon on the PDF that once clicked on will display text in a separate box.

[Visual Basic]
Imports System
Imports ceTe.DynamicPDF
Imports ceTe.DynamicPDF.PageElements

Module MyModule
        
    Sub Main()
        
        ' Create a PDF Document
        Dim MyDocument As Document = New Document 
        
        ' Create a Page and add it to the document
        Dim MyPage As Page = New Page
        MyDocument.Pages.Add(MyPage)

        ' Create a note
        Dim MyNote As Note = New Note("This is my help note.", 50, 50, _
            150, 50, NoteType.Help, False)

        ' Change the color property 
        MyNote.Color = Color.Red

        ' Add the note to the page
        MyPage.Elements.Add(MyNote)
        MyPage.Elements.Add(New Label("Click on the above icon to view " + _
            "the note.", 50, 80, 150, 72, Font.HelveticaBold, 18))


        ' Save the PDF
        MyDocument.Draw("C:\MyDocument.pdf")
        
    End Sub
End Module
[C#]
using System;
using ceTe.DynamicPDF;
using ceTe.DynamicPDF.PageElements;

class MyClass
{
    static void Main()
    {
        // Create a PDF Document
        Document document = new Document();

        // Create a Page and add it to the document
        Page page = new Page();
        document.Pages.Add( page );

        // Create a note
        Note note = new Note( "This is my help note.", 50, 50, 150, 50, 
            NoteType.Help, true );

        // Change the color property
        note.Color = Color.Red;

        // Add the note to the page
        page.Elements.Add( note );    
        page.Elements.Add( new Label( "Click on the above icon to view " +
            "the note.", 50, 80, 150, 72, Font.HelveticaBold, 18 ) );

        // Save the PDF
        document.Draw( @"C:\MyDocument.pdf" );
    }
}

Requirements

Namespace: ceTe.DynamicPDF.PageElements Namespace

Assembly: DynamicPDF.Generator.[Edition].dll

See Also

Note members | ceTe.DynamicPDF.PageElements Namespace