DateComponent
Contents
[
Hide
]Inheritance: java.lang.Object, com.aspose.pdf.artifacts.pagination.DateComponent
public class DateComponent extends Object
Represents a base class for date components with a format attribute.
Constructors
| Constructor | Description |
|---|---|
| DateComponent |
Methods
| Method | Description |
|---|---|
| getFormat | Gets or sets the format for the date component. |
| getFormat | Returns a string composed of a specified character repeated based on the format. |
| setFormat | Gets or sets the format for the date component. |
DateComponent
public DateComponent()
getFormat
public final int getFormat()
Gets or sets the format for the date component.
Returns: int value
getFormat
public final String getFormat(char ch)
Returns a string composed of a specified character repeated based on the format.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| ch | The character to repeat. |
Returns: A string consisting of the character repeated.
setFormat
public final void setFormat(int value)
Gets or sets the format for the date component.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | int value |