---
title: "HighlightingMode"
url: "https://reference.aspose.com/pdf/java/com.aspose.pdf/highlightingmode/"
product: "Aspose.PDF for Java API Reference"
description: "Enumerates the annotation's highlighting mode, the visual effect to be used when the mouse button is pressed or held down inside its active area."
---

**Inheritance:**
java.lang.Object, java.lang.Enum < HighlightingMode > com.aspose.pdf.HighlightingMode, java.lang.Enum < HighlightingMode >, com.aspose.pdf.HighlightingMode

**All Implemented Interfaces:**
Serializable, Comparable < HighlightingMode >

```
public enum HighlightingMode extends Enum < HighlightingMode >
```

Enumerates the annotation's highlighting mode, the visual effect to be used when the mouse button is pressed or held down inside its active area.

## Fields

| Field | Description |
| --- | --- |
| [Invert](#Invert) | Invert the contents of the annotation rectangle. |
| [None](#None) | No highlighting. |
| [Outline](#Outline) | Invert the annotation's border. |
| [Push](#Push) | Display the annotation's down appearance, if any. |
| [Toggle](#Toggle) | Same as Push (which is preferred). |

## Methods

| Method | Description |
| --- | --- |
| [getByValue](#getByValue-int-) |  |
| [getValue](#getValue--) |  |
| [valueOf](#valueOf-java.lang.String-) | Returns the enum constant of this type with the specified name. |
| [values](#values--) | Returns an array containing the constants of this enum type, in the order they are declared. |

### Invert {#Invert}
```
public static final HighlightingMode Invert
```

Invert the contents of the annotation rectangle.

### None {#None}
```
public static final HighlightingMode None
```

No highlighting.

### Outline {#Outline}
```
public static final HighlightingMode Outline
```

Invert the annotation's border.

### Push {#Push}
```
public static final HighlightingMode Push
```

Display the annotation's down appearance, if any.

### Toggle {#Toggle}
```
public static final HighlightingMode Toggle
```

Same as Push (which is preferred).

### getByValue {#getByValue-int-}
```
public static HighlightingMode getByValue(int value)
```



**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value |  |  |

### getValue {#getValue--}
```
public int getValue()
```



### valueOf {#valueOf-java.lang.String-}
Returns the enum constant of this type with the specified name.

### values {#values--}
```
public static HighlightingMode [] values()
```

Returns an array containing the constants of this enum type, in the order they are declared.

**Returns:**
an array containing the constants of this enum type, in the order they are declared
