DynaPDF.SetLinkHighlightMode
----------------------------

Sets the highlight mode that is used by link annotations.

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

MBS( "DynaPDF.SetLinkHighlightMode"; PDF; Mode ) 

**MBS**( **"DynaPDF.SetLinkHighlightMode";** /\* Sets the highlight mode that is used by link annotations. \*/  
**$PDF**; /\* The PDF reference returned from [DynaPDF.New](DynaPDFNew.md). \*/   
**$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 |
| Mode | The new highlight mode. Can be None, Invert, Outline, Push or PushUpd. | "Invert" |

### Result

Returns OK or error.

### Description

Sets the highlight mode that is used by link annotations.   
The highlight mode applies a visual effect when moving the mouse over a link annotation.   
  
See also [SetLinkHighlightMode](https://www.monkeybreadsoftware.com/DynaPDF-Manual/SetLinkHighlightMode.shtml) function in DynaPDF manual.

### Examples

Setup drawing for links:

 Set Variable \[ $r ; Value: MBS ("[DynaPDF.SetLineWidth](DynaPDFSetLineWidth.md)"; $pdf ; 1) \]   
Set Variable \[ $r ; Value: MBS ("DynaPDF.SetLinkHighlightMode"; $pdf ; "invert") \]  
### See also

- [DynaPDF.FileLink](DynaPDFFileLink.md)
- [DynaPDF.GetFieldHighlightMode](DynaPDFGetFieldHighlightMode.md)
- [DynaPDF.GetLinkHighlightMode](DynaPDFGetLinkHighlightMode.md)
- [DynaPDF.New](DynaPDFNew.md)
- [DynaPDF.PageLink](DynaPDFPageLink.md)
- [DynaPDF.PageLinkEx](DynaPDFPageLinkEx.md)
- [DynaPDF.SetAnnotHighlightMode](DynaPDFSetAnnotHighlightMode.md)
- [DynaPDF.SetFieldHighlightMode](DynaPDFSetFieldHighlightMode.md)
- [DynaPDF.SetLineWidth](DynaPDFSetLineWidth.md)
- [DynaPDF.WebLink](DynaPDFWebLink.md)

### Release notes

- **Version 7.0**
    - Added [DynaPDF.SetLinkHighlightMode](http://www.mbsplugins.eu/DynaPDFSetLinkHighlightMode.shtml) and [DynaPDF.GetLinkHighlightMode](http://www.mbsplugins.eu/DynaPDFGetLinkHighlightMode.shtml) functions.

### Example Databases

- [DynaPDF/Add Weblinks](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/DynaPDF/Add%20Weblinks.shtml#3ScriptAnchor_)

### Blog Entries

- [Example Script for DynaPDF.FindText and DynaPDF.WebLink](https://www.mbsplugins.de/archive/2020-05-04/Example_Script_for_DynaPDFFind/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin, version 7.0pr1](https://www.mbsplugins.de/archive/2017-01-02/MBS_FileMaker_Plugin_version_7/monkeybreadsoftware_blog_filemaker)

This function checks for a license.

Created 18th December 2016 , last changed 4th May 2020

  
[DynaPDF.SetLineWidth](DynaPDFSetLineWidth.md) - [DynaPDF.SetMetaConvFlags](DynaPDFSetMetaConvFlags.md)

[HTML Version](DynaPDFSetLinkHighlightMode.shtml)