com.aspose.email

Interfaces

Classes

Enums

Exceptions

com.aspose.email

Class AmpFitText



  • public class AmpFitText
    extends AmpComponent

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

    • Constructor Detail

      • AmpFitText

        public AmpFitText(String value)

        Creates instance of AmpFitText.

        Parameters:
        value -
    • Method Detail

      • getValue

        public final String getValue()

        Text Value of component.

      • setValue

        public final void setValue(String value)

        Text Value of component.

      • getMinFontSize

        public final int getMinFontSize()

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

      • setMinFontSize

        public final void setMinFontSize(int value)

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

      • getMaxFontSize

        public final int getMaxFontSize()

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

      • setMaxFontSize

        public final void setMaxFontSize(int value)

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

      • toAmpHtml

        public String toAmpHtml()

        Represents amp html version of component.

        Specified by:
        toAmpHtml in class AmpComponent
        Returns:
      • toHtml

        public String toHtml()

        Represents html version of component.

        Specified by:
        toHtml in class AmpComponent
        Returns: