DateComponent

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

ConstructorDescription
DateComponent

Methods

MethodDescription
getFormatGets or sets the format for the date component.
getFormatReturns a string composed of a specified character repeated based on the format.
setFormatGets 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:

ParameterTypeDescription
chThe 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:

ParameterTypeDescription
valueint value