
**Inheritance:**
java.lang.Object, [com.aspose.tasks.HeaderFooterInfo](../../com.aspose.tasks/headerfooterinfo)
```
public class PageLegend extends HeaderFooterInfo
```

Represents a page legend which is used for project printing.
## Constructors

| Constructor | Description |
| --- | --- |
| [PageLegend()](#PageLegend--) |  |
## Methods

| Method | Description |
| --- | --- |
| [getLegendOn()](#getLegendOn--) | Gets the pages on which the legend appears. |
| [getWidth()](#getWidth--) | Gets the width of the left part (containing project's name and date by default) of the legend in centimeters. |
| [setLegendOn(int value)](#setLegendOn-int-) | Sets the pages on which the legend appears. |
| [setWidth(double value)](#setWidth-double-) | Sets the width of the left part (containing project's name and date by default) of the legend in centimeters. |
### PageLegend() {#PageLegend--}
```
public PageLegend()
```


### getLegendOn() {#getLegendOn--}
```
public final int getLegendOn()
```


Gets the pages on which the legend appears. Can be one of the values of the [Legend](../../com.aspose.tasks/legend) enumeration.

**Returns:**
int - the pages on which the legend appears.
### getWidth() {#getWidth--}
```
public final double getWidth()
```


Gets the width of the left part (containing project's name and date by default) of the legend in centimeters.

**Returns:**
double - the width of the left part (containing project's name and date by default) of the legend in centimeters.
### setLegendOn(int value) {#setLegendOn-int-}
```
public final void setLegendOn(int value)
```


Sets the pages on which the legend appears. Can be one of the values of the [Legend](../../com.aspose.tasks/legend) enumeration.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | int | the pages on which the legend appears. |

### setWidth(double value) {#setWidth-double-}
```
public final void setWidth(double value)
```


Sets the width of the left part (containing project's name and date by default) of the legend in centimeters.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | double | the width of the left part (containing project's name and date by default) of the legend in centimeters. |

