Add text markup annotation to the current rect of the current page of the doc.

 

   

Syntax
 

[C#]
TextMarkupAnnotation(Doc doc, string quadPoints, TextMarkupType markupType, XColor color)
TextMarkupAnnotation(Doc doc, int id, TextMarkupType markupType, XColor color)
TextMarkupAnnotation(Doc doc, TextMarkupType markupType, XColor color)

[Visual Basic]
TextMarkupAnnotation(doc As Doc, quadPoints As string, markupType As TextMarkupType, color As XColor)
TextMarkupAnnotation(doc As Doc, id As int, markupType As TextMarkupType, color As XColor)
TextMarkupAnnotation(doc As Doc, markupType As TextMarkupType, color As XColor)

 

   

Params
 
Name Description
doc Doc
quadPoints Quad points of the text
markupType Type of the markup annotation
color Markup color
id ID of the Text object

 

   

Notes
 

Add text markup annotation to the current rect of the current page of the doc.

The TextMarkupType enumeration may take the following values:

  • Underline - Underlined text.
  • Highlight - Highlighted text.
  • StrikeOut - Struck through text.
  • Squiggly - Squiggly underlined text.

If quad points are provided, the annotation rectangle will be set to the smallest area that contains all these points. If a text object ID is provided, the annotation rectangle will be set to match the area of the text object. If neither is provided, the annotation rectangle will be set to match the current Doc.Rect.

A quad comprises eight numbers specifying the corners of a quadrilateral in counterclockwise order. Multiple quadrilaterals can be specified, so the number of items in the list is always a multiple of eight. For the purposes of underlines the orientation is determined by a line drawn between the first two points.

 

   

Example
 
None.