AmpFitText

Inheritance: java.lang.Object, com.aspose.email.AmpComponent

public class AmpFitText extends AmpComponent

Expands or shrinks its font size to fit the content within the space given to it.

Constructors

Constructor Description
AmpFitText(String value) Creates instance of AmpFitText.

Methods

Method Description
getValue() Text Value of component.
setValue(String value) Text Value of component.
getMinFontSize() Specifies the minimum font size as an integer that the amp-fit-text can use.
setMinFontSize(int value) Specifies the minimum font size as an integer that the amp-fit-text can use.
getMaxFontSize() Specifies the maximum font size as an integer that the amp-fit-text can use.
setMaxFontSize(int value) Specifies the maximum font size as an integer that the amp-fit-text can use.
getRequiredScript() Required script that muct be added to head section.
toAmpHtml() Represents amp html version of component.
toHtml() Represents html version of component.

AmpFitText(String value)

public AmpFitText(String value)

Creates instance of AmpFitText.

Parameters:

Parameter Type Description
value java.lang.String

getValue()

public final String getValue()

Text Value of component.

Returns: java.lang.String

setValue(String value)

public final void setValue(String value)

Text Value of component.

Parameters:

Parameter Type Description
value java.lang.String

getMinFontSize()

public final int getMinFontSize()

Specifies the minimum font size as an integer that the amp-fit-text can use.

Returns: int

setMinFontSize(int value)

public final void setMinFontSize(int value)

Specifies the minimum font size as an integer that the amp-fit-text can use.

Parameters:

Parameter Type Description
value int

getMaxFontSize()

public final int getMaxFontSize()

Specifies the maximum font size as an integer that the amp-fit-text can use.

Returns: int

setMaxFontSize(int value)

public final void setMaxFontSize(int value)

Specifies the maximum font size as an integer that the amp-fit-text can use.

Parameters:

Parameter Type Description
value int

getRequiredScript()

public String getRequiredScript()

Required script that muct be added to head section.

Returns: java.lang.String

toAmpHtml()

public String toAmpHtml()

Represents amp html version of component.

Returns: java.lang.String -

toHtml()

public String toHtml()

Represents html version of component.

Returns: java.lang.String -