---
title: "DefaultState"
url: "https://reference.aspose.com/pdf/java/com.aspose.pdf/defaultstate/"
product: "Aspose.PDF for Java API Reference"
description: "Represents the default state of a PDF layer."
---

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

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

```
public enum DefaultState extends Enum < DefaultState >
```

Represents the default state of a PDF layer.

## Fields

| Field | Description |
| --- | --- |
| [Hidden](#Hidden) | The default state is hidden. |
| [Visible](#Visible) | The default state is visible. |

## 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. |

### Hidden {#Hidden}
```
public static final DefaultState Hidden
```

The default state is hidden.

### Visible {#Visible}
```
public static final DefaultState Visible
```

The default state is visible.

### getByValue {#getByValue-int-}
```
public static DefaultState 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 DefaultState [] 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
