DynaPDF.SetAnnotHighlightMode
-----------------------------

Sets or changes the highlight mode of a link annotation.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [DynaPDF](component_DynaPDF.md) | [5.0](newinversion50.md) | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |

MBS( "DynaPDF.SetAnnotHighlightMode"; PDF; AnnotationHandle; Mode ) 

**MBS**( **"DynaPDF.SetAnnotHighlightMode";** /\* Sets or changes the highlight mode of a link annotation. \*/  
**$PDF**; /\* The PDF reference returned from [DynaPDF.New](DynaPDFNew.md). \*/   
**$AnnotationHandle**; /\* The annotation index.e.g. 5 \*/   
**$Mode**) /\* The new highlight mode. Can be None, Invert, Outline, Push or PushUpd.e.g. "Invert" \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| PDF | The PDF reference returned from [DynaPDF.New](DynaPDFNew.md). | $pdf |
| AnnotationHandle | The annotation index. | 5 |
| Mode | The new highlight mode. Can be None, Invert, Outline, Push or PushUpd. | "Invert" |

### Result

Returns OK or error.

### Description

Sets or changes the highlight mode of a link annotation.   
The highlight mode is applied when clicking with the mouse on the annotation. Only link annotations support a highlight mode. However, setting the mode to other annotation types causes no error; the value will be ignored instead.  
See also [SetAnnotHighlightMode](https://www.monkeybreadsoftware.com/DynaPDF-Manual/SetAnnotHighlightMode.shtml) function in DynaPDF manual.

### See also

- [DynaPDF.GetFieldHighlightMode](DynaPDFGetFieldHighlightMode.md)
- [DynaPDF.GetLinkHighlightMode](DynaPDFGetLinkHighlightMode.md)
- [DynaPDF.New](DynaPDFNew.md)
- [DynaPDF.SetFieldHighlightMode](DynaPDFSetFieldHighlightMode.md)
- [DynaPDF.SetLinkHighlightMode](DynaPDFSetLinkHighlightMode.md)

This function checks for a license.

Created 25th November 2014 , last changed 25th November 2014

  
[DynaPDF.SetAnnotFlagsEx](DynaPDFSetAnnotFlagsEx.md) - [DynaPDF.SetAnnotIcon](DynaPDFSetAnnotIcon.md)

[HTML Version](DynaPDFSetAnnotHighlightMode.shtml)