Show / Hide Table of Contents

Class TextMarkup

Text markup annotations shall appear as highlights, underlines, strikeouts (all PDF 1.3), or jagged (�squiggly�) underlines (PDF 1.4) in the text of a document. When opened, they shall display a pop-up window containing the text of the associated note.

Inheritance
System.Object
Annot
Markup
TextMarkup
Highlight
Squiggly
StrikeOut
Underline
Implements
System.IDisposable
Inherited Members
Markup.GetTitle()
Markup.SetTitle(String)
Markup.GetPopup()
Markup.SetPopup(Popup)
Markup.GetOpacity()
Markup.SetOpacity(Double)
Markup.GetSubject()
Markup.SetSubject(String)
Markup.GetCreationDates()
Markup.SetCreationDates(Date)
Markup.GetBorderEffect()
Markup.SetBorderEffect(Markup.BorderEffect)
Markup.GetBorderEffectIntensity()
Markup.SetBorderEffectIntensity(Double)
Markup.GetInteriorColor()
Markup.GetInteriorColorCompNum()
Markup.SetInteriorColor(ColorPt, Int32)
Markup.GetContentRect()
Markup.SetContentRect(Rect)
Markup.GetPadding()
Markup.SetPadding(Rect)
Markup.RotateAppearance(Double)
Annot.Dispose()
Annot.Dispose(Boolean)
Annot.GetHandleInternal()
Annot.GetRefHandleInternal()
Annot.CreateInternal(IntPtr, Object)
Annot.Create(SDFDoc, Annot.Type, Rect)
Annot.op_Assign(Annot)
Annot.Equals(Object)
Annot.IsValid()
Annot.GetSDFObj()
Annot.GetType()
Annot.IsMarkup()
Annot.GetRect()
Annot.GetVisibleContentBox()
Annot.SetRect(Rect)
Annot.GetContents()
Annot.SetContents(String)
Annot.GetPage()
Annot.SetPage(Page)
Annot.GetUniqueID()
Annot.SetUniqueID(String)
Annot.GetDate()
Annot.SetDate(Date)
Annot.GetFlag(Annot.Flag)
Annot.SetFlag(Annot.Flag, Boolean)
Annot.GetBorderStyle()
Annot.SetBorderStyle(Annot.BorderStyle)
Annot.GetAppearance()
Annot.GetAppearance(Annot.AnnotationState)
Annot.GetAppearance(Annot.AnnotationState, String)
Annot.SetAppearance(Obj)
Annot.SetAppearance(Obj, Annot.AnnotationState)
Annot.SetAppearance(Obj, Annot.AnnotationState, String)
Annot.RemoveAppearance()
Annot.RemoveAppearance(Annot.AnnotationState)
Annot.RemoveAppearance(Annot.AnnotationState, String)
Annot.Flatten(Page)
Annot.GetActiveAppearanceState()
Annot.SetActiveAppearanceState(String)
Annot.GetColorAsRGB()
Annot.GetColorAsCMYK()
Annot.GetColorAsGray()
Annot.GetColorCompNum()
Annot.SetColor(ColorPt, Int32)
Annot.SetColor(ColorPt)
Annot.GetStructParent()
Annot.SetStructParent(Int32)
Annot.GetOptionalContent()
Annot.SetOptionalContent(Obj)
Annot.Resize(Rect)
Annot.GetRotation()
Annot.SetRotation(Int32)
Annot.RefreshAppearance()
Annot.GetCustomData(String)
Annot.SetCustomData(String, String)
Annot.DeleteCustomData(String)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.MemberwiseClone()
System.Object.ToString()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: pdftron.PDF.Annots
Assembly: PDFNetAndroid.dll
Syntax
public class TextMarkup : Markup, IDisposable

Constructors

TextMarkup(Annot)

Declaration
public TextMarkup(Annot ann)
Parameters
Type Name Description
Annot ann

TextMarkup(Obj)

Creates a TextMarkup annotation and initialize it using given Cos/SDF object.

Declaration
public TextMarkup(Obj d)
Parameters
Type Name Description
Obj d

the d

Remarks

The constructor does not copy any data, but is instead the logical equivalent of a type cast.

Methods

Finalize()

Releases all resources used by the TextMarkup

Declaration
protected void Finalize()

GetQuadPoint(Int32)

Gets the QuadPoint located at a certain index of the QuadPoint array of the TextMarkup annotation.

Declaration
public QuadPoint GetQuadPoint(int idx)
Parameters
Type Name Description
System.Int32 idx

The index where the QuadPoint is to be located (the index is counted from 0, and continue on assendingly).

Returns
Type Description
QuadPoint

The QuadPoint located at a certain index of the QuadPoint array of the TextMarkup annotation.

Remarks

An array of n QuadPoints specifying the coordinates of nquadrilaterals in default user space. Each quadrilateral shall encompasses a word or group of contiguous words in the text underlying the annotation. The coordinates for each quadrilateral shall be given in the order p1, p2, p3, p4 specifying the quadrilateral�s four vertices in counterclockwise order. The text shall be oriented with respect to the edge connecting points (p1) and (p2). The annotation dictionary�s Appearance(AP) entry, if present, shall take precedence over QuadPoints.

Exceptions
Type Condition
PDFNetException

PDFNetException the PDFNet exception

GetQuadPointCount()

Gets the number of QuadPoints in the QuadPoints array of the TextMarkup annotation.

Declaration
public int GetQuadPointCount()
Returns
Type Description
System.Int32

The number of QuadPoints.

Remarks

An array of n QuadPoints specifying the coordinates of nquadrilaterals in default user space. Each quadrilateral shall encompasses a word or group of contiguous words in the text underlying the annotation. The coordinates for each quadrilateral shall be given in the order p1, p2, p3, p4 specifying the quadrilateral�s four vertices in counterclockwise order. The text shall be oriented with respect to the edge connecting points (p1) and (p2). The annotation dictionary�s Appearance(AP) entry, if present, shall take precedence over QuadPoints.

Exceptions
Type Condition
PDFNetException

PDFNetException the PDFNet exception

SetQuadPoint(Int32, QuadPoint)

Sets the QuadPoint to be located at a certain index of the QuadPoint array of the TextMarkup annotation. (Optional; PDF�1.6 )

Declaration
public void SetQuadPoint(int idx, QuadPoint qp)
Parameters
Type Name Description
System.Int32 idx

The index where the QuadPoint is to be located (the index is counted from 0, and continue on assendingly).

QuadPoint qp

The QuadPoint to be located at a certain index of the QuadPoint array of the TextMarkup annotation.

Remarks

To make this QuadPoint compatible with Adobe Acrobat|Reader, you can use either clockwise or counterclockwise order, but the points p3 and p4 must be swapped. This is because those readers do not follow the PDF specification for TextMarkup QuadPoints.

Exceptions
Type Condition
PDFNetException

PDFNetException the PDFNet exception

Implements

System.IDisposable
In This Article
Back to top Generated by DocFX