---
title: "BoxStyle"
url: "https://reference.aspose.com/pdf/java/com.aspose.pdf/boxstyle/"
product: "Aspose.PDF for Java API Reference"
description: "Represents styles for drawing check in check box."
---

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

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

```
public enum BoxStyle extends Enum < BoxStyle >
```

Represents styles for drawing check in check box.

## Fields

| Field | Description |
| --- | --- |
| [Check](#Check) | Check style. |
| [Circle](#Circle) | Circle style. |
| [Cross](#Cross) | Cross style. |
| [Diamond](#Diamond) | Diamond style. |
| [Square](#Square) | Square style. |
| [Star](#Star) | Star style. |

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

### Check {#Check}
```
public static final BoxStyle Check
```

Check style.

### Circle {#Circle}
```
public static final BoxStyle Circle
```

Circle style.

### Cross {#Cross}
```
public static final BoxStyle Cross
```

Cross style.

### Diamond {#Diamond}
```
public static final BoxStyle Diamond
```

Diamond style.

### Square {#Square}
```
public static final BoxStyle Square
```

Square style.

### Star {#Star}
```
public static final BoxStyle Star
```

Star style.

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