Skip to main content
Skip table of contents

Annotation

Annotation Public class

Description

An Annotation is a little note that can be added to a page on a document.

Diagram

  flowchart LR
  classDef interfaceStyle stroke-dasharray: 5 5;
  classDef abstractStyle stroke-width:4px
  subgraph iTextSharp.text
  iTextSharp.text.Annotation[[Annotation]]
  iTextSharp.text.IElement[[IElement]]
  class iTextSharp.text.IElement interfaceStyle;
  end
iTextSharp.text.IElement --> iTextSharp.text.Annotation

Members

Properties

Public properties
TypeNameMethods
intAnnotationType
Returns the type of this Annotation.
get
Dictionary<string, object>Attributes
Gets the content of this Annotation.
get
IList<Chunk>Chunks
Gets all the chunks in this element.
get
stringContent
Gets the content of this Annotation.
get
stringTitle
Returns the title of this Annotation.
get
intType
Gets the type of the text element
get

Methods

Public methods
ReturnsName
floatGetLlx(...)
Returns the lower left x-value.
floatGetLly(...)
Returns the lower left y-value.
floatGetUrx(...)
Returns the uppper right x-value.
floatGetUry(...)
Returns the uppper right y-value.
boolIsContent()
boolIsNestable()
boolProcess(IElementListener listener)
Processes the element by adding it (or the different parts) to an
IElementListener.
voidSetDimensions(float llx, float lly, float urx, float ury)
Sets the dimensions of this annotation.
stringToString()

Details

Summary

An Annotation is a little note that can be added to a page on a document.

Inheritance

Constructors

Annotation [1/10]

Source code

public Annotation(Annotation an)
Arguments
TypeNameDescription
Annotationan
Annotation [2/10]

Source code

public Annotation(string title, string text)
Arguments
TypeNameDescription
stringtitlethe title of the annotation
stringtextthe content of the annotation
Summary

Constructs an Annotation with a certain title and some text.

Annotation [3/10]

Source code

public Annotation(string title, string text, float llx, float lly, float urx, float ury)
Arguments
TypeNameDescription
stringtitlethe title of the annotation
stringtextthe content of the annotation
floatllxthe lower left x-value
floatllythe lower left y-value
floaturxthe upper right x-value
floaturythe upper right y-value
Summary

Constructs an Annotation with a certain title and some text.

Annotation [4/10]

Source code

public Annotation(float llx, float lly, float urx, float ury, Uri url)
Arguments
TypeNameDescription
floatllxthe lower left x-value
floatllythe lower left y-value
floaturxthe upper right x-value
floaturythe upper right y-value
Uriurlthe external reference
Summary

Constructs an Annotation.

Annotation [5/10]

Source code

public Annotation(float llx, float lly, float urx, float ury, string url)
Arguments
TypeNameDescription
floatllxthe lower left x-value
floatllythe lower left y-value
floaturxthe upper right x-value
floaturythe upper right y-value
stringurlthe external reference
Summary

Constructs an Annotation.

Annotation [6/10]

Source code

public Annotation(float llx, float lly, float urx, float ury, string file, string dest)
Arguments
TypeNameDescription
floatllxthe lower left x-value
floatllythe lower left y-value
floaturxthe upper right x-value
floaturythe upper right y-value
stringfilean external PDF file
stringdestthe destination in this file
Summary

Constructs an Annotation.

Annotation [7/10]

Source code

public Annotation(float llx, float lly, float urx, float ury, string moviePath, string mimeType, bool showOnDisplay)
Arguments
TypeNameDescription
floatllxthe lower left x-value
floatllythe lower left y-value
floaturxthe upper right x-value
floaturythe upper right y-value
stringmoviePathpath to the media clip file
stringmimeTypemime type of the media
boolshowOnDisplayif true play on display of the page
Summary

Creates a Screen anotation to embed media clips

Annotation [8/10]

Source code

public Annotation(float llx, float lly, float urx, float ury, string file, int page)
Arguments
TypeNameDescription
floatllxthe lower left x-value
floatllythe lower left y-value
floaturxthe upper right x-value
floaturythe upper right y-value
stringfilean external PDF file
intpagea page number in this file
Summary

Constructs an Annotation.

Annotation [9/10]

Source code

public Annotation(float llx, float lly, float urx, float ury, int named)
Arguments
TypeNameDescription
floatllxthe lower left x-value
floatllythe lower left y-value
floaturxthe upper right x-value
floaturythe upper right y-value
intnameda named destination in this file
Summary

Constructs an Annotation.

Annotation [10/10]

Source code

public Annotation(float llx, float lly, float urx, float ury, string application, string parameters, string operation, string defaultdir)
Arguments
TypeNameDescription
floatllxthe lower left x-value
floatllythe lower left y-value
floaturxthe upper right x-value
floaturythe upper right y-value
stringapplicationan external application
stringparametersparameters to pass to this application
stringoperationthe operation to pass to this application
stringdefaultdirthe default directory to run this application in
Summary

Constructs an Annotation.

Methods

Process

Source code

public virtual bool Process(IElementListener listener)
Arguments
TypeNameDescription
IElementListenerlisteneran IElementListener
Summary

Processes the element by adding it (or the different parts) to an IElementListener.

Returns

true if the element was process successfully

SetDimensions

Source code

public virtual void SetDimensions(float llx, float lly, float urx, float ury)
Arguments
TypeNameDescription
floatllxthe lower left x-value
floatllythe lower left y-value
floaturxthe upper right x-value
floaturythe upper right y-value
Summary

Sets the dimensions of this annotation.

GetLlx [1/2]

Source code

public virtual float GetLlx()
Summary

Returns the lower left x-value.

Returns

a value

GetLly [1/2]

Source code

public virtual float GetLly()
Summary

Returns the lower left y-value.

Returns

a value

GetUrx [1/2]

Source code

public virtual float GetUrx()
Summary

Returns the uppper right x-value.

Returns

a value

GetUry [1/2]

Source code

public virtual float GetUry()
Summary

Returns the uppper right y-value.

Returns

a value

GetLlx [2/2]

Source code

public virtual float GetLlx(float def)
Arguments
TypeNameDescription
floatdefthe default value
Summary

Returns the lower left x-value.

Returns

a value

GetLly [2/2]

Source code

public virtual float GetLly(float def)
Arguments
TypeNameDescription
floatdefthe default value
Summary

Returns the lower left y-value.

Returns

a value

GetUrx [2/2]

Source code

public virtual float GetUrx(float def)
Arguments
TypeNameDescription
floatdefthe default value
Summary

Returns the upper right x-value.

Returns

a value

GetUry [2/2]

Source code

public virtual float GetUry(float def)
Arguments
TypeNameDescription
floatdefthe default value
Summary

Returns the upper right y-value.

Returns

a value

IsContent

Source code

public virtual bool IsContent()
IsNestable

Source code

public virtual bool IsNestable()
ToString

Source code

public override string ToString()

Properties

Type
public virtual int Type { get; }
Summary

Gets the type of the text element

Chunks
public virtual IList<Chunk> Chunks { get; }
Summary

Gets all the chunks in this element.

Value

an ArrayList

AnnotationType
public virtual int AnnotationType { get; }
Summary

Returns the type of this Annotation.

Value

a type

Title
public virtual string Title { get; }
Summary

Returns the title of this Annotation.

Value

a name

Content
public virtual string Content { get; }
Summary

Gets the content of this Annotation.

Value

a reference

Attributes
public virtual Dictionary<string, object> Attributes { get; }
Summary

Gets the content of this Annotation.

Value

a reference

Generated with ModularDoc

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.