## PageDate.YearComponent class

Represents the year component of a date.

```csharp
public class YearComponent : DateComponent
```

## Constructors

| Name | Description |
| --- | --- |
| [YearComponent](../../aspose.pdf/pagedate.yearcomponent/.ctor)() | The default constructor. |

## Properties

| Name | Description |
| --- | --- |
| [Format](../../aspose.pdf/datecomponent/format/) { get; set; } | Gets or sets the format for the date component. |

## Methods

| Name | Description |
| --- | --- |
| [GetFormat](../../aspose.pdf/pagedate.yearcomponent/getformat#getformat)() | Gets the format string for the year component. |
| [GetFormat](../../aspose.pdf/datecomponent/getformat/)(char) | Returns a string composed of a specified character repeated based on the format. |

### See Also

* class [DateComponent](../datecomponent/)
* class [PageDate](../pagedate/)
* namespace [Aspose.Pdf](../../aspose.pdf/)
* assembly [Aspose.PDF](../../)


