com.aspose.pub

Class TextStyle



  • public class TextStyle
    extends BaseStyle

    Describes PUB text style

    • Constructor Detail

      • TextStyle

        public TextStyle()

        Constructor

    • Method Detail

      • isBold

        public final boolean isBold()

        Is text bold

        Returns:
        boolean value
      • setIsBold

        public final void setIsBold(boolean value)

        Sets is text bold

        Parameters:
        value - Is bold value
      • isItalic

        public final boolean isItalic()

        Is text italic

        Returns:
        boolean value
      • setIsItalic

        public final void setIsItalic(boolean value)

        Sets is text italic

        Parameters:
        value - Is italic value
      • getUnderlineType

        public final byte getUnderlineType()

        Underline type for text

        Returns:
        UnderlineType element
        See Also:
        UnderlineType
      • setUnderlineType

        public final void setUnderlineType(byte value)

        Sets underline type for text

        Parameters:
        value - Value of underline type
      • isOutline

        public final boolean isOutline()

        Is text outlined

        Returns:
        boolean value
      • setIsOutline

        public final void setIsOutline(boolean value)

        Sets is text outlined

        Parameters:
        value - Is text outlined value
      • isShadow

        public final boolean isShadow()

        Is text shadowed

        Returns:
        boolean value
      • setIsShadow

        public final void setIsShadow(boolean value)

        Sets is text shadowed

        Parameters:
        value - Is text shadowed value
      • isSmallCapsMode

        public final boolean isSmallCapsMode()

        Is small caps mode enabled

        Returns:
        boolean value
      • setIsSmallCapsMode

        public final void setIsSmallCapsMode(boolean value)

        Enables/disables small caps mode for text

        Parameters:
        value - Is small caps mode enabled
      • isAllCapsMode

        public final boolean isAllCapsMode()

        Is all caps mode enabled

        Returns:
        boolean value
      • setIsAllCapsMode

        public final void setIsAllCapsMode(boolean value)

        Enables/disables all caps mode for text

        Parameters:
        value - Is all caps mode enabled
      • isEmboss

        public final boolean isEmboss()

        Is text embossed

        Returns:
        boolean value
      • setIsEmboss

        public final void setIsEmboss(boolean value)

        Sets is text embossed

        Parameters:
        value - Is text embossed value
      • isEngrave

        public final boolean isEngrave()

        Is text engraved

        Returns:
        boolean value
      • setIsEngrave

        public final void setIsEngrave(boolean value)

        Sets is text engraved

        Parameters:
        value - Is text engraved value
      • getRawTextSize

        public final int getRawTextSize()

        Size of text in PUB metrics(in EMUs)

        Returns:
        int value
      • setRawTextSize

        public final void setRawTextSize(int value)

        Sets size of text in PUB metrics(in EMUs)

        Parameters:
        value - Value of text size in EMUs
      • calculateTextSize

        public final double calculateTextSize()

        Calculates text size in points

        Returns:
        text size in points
      • getColorIndex

        public final int getColorIndex()

        Gets index of color in Document.Colors array

        Returns:
        int value
      • setColorIndex

        public final void setColorIndex(int value)

        Sets index of color in Document.Colors array

        Parameters:
        value - Value of color index
      • getFontIndex

        public final int getFontIndex()

        Gets index of font name in Document.FontNames array

        Returns:
        int value
      • setFontIndex

        public final void setFontIndex(int value)

        Sets index of font name in Document.FontNames array

        Parameters:
        value - Value of font index
      • getSuperscriptType

        public final byte getSuperscriptType()

        Type of superscript

        Returns:
        SuperscriptType element
        See Also:
        SuperscriptType
      • setSuperscriptType

        public final void setSuperscriptType(byte value)

        Sets type of superscript

        Parameters:
        value - Value of superscript type
      • getScaleValue

        public final double getScaleValue()

        Value of scale

        Returns:
        double value
      • setScaleValue

        public final void setScaleValue(double value)

        Sets value of scale

        Parameters:
        value - Value of scale
      • getLocale

        public final int getLocale()

        Locale identifier

        Returns:
        int value
      • setLocale

        public final void setLocale(int value)

        Sets locale identifier

        Parameters:
        value - Locale identifier