com.aspose.cells

Class TextOptions

  • java.lang.Object
    • Font
      • com.aspose.cells.TextOptions
public class TextOptions 
extends Font

Represents the text options.

Property Getters/Setters Summary
intgetArgbColor()
void
setArgbColor(intvalue)
           Gets and sets the color with a 32-bit ARGB value.
intgetCapsType()
void
setCapsType(intvalue)
           Gets and sets the text caps type. The value of the property is TextCapsType integer constant.
intgetCharset()
void
setCharset(intvalue)
           Represent the character set.
com.aspose.cells.ColorgetColor()
void
setColor(com.aspose.cells.Colorvalue)
           Gets or sets the com.aspose.cells.Color of the font.
doublegetDoubleSize()
void
setDoubleSize(doublevalue)
           Gets and sets the double size of the font.
java.lang.StringgetFarEastName()
void
setFarEastName(java.lang.Stringvalue)
           Gets and sets the FarEast name.
FillFormatgetFill()
Represents the fill format of the text.
booleanisBold()
void
setBold(booleanvalue)
           Gets or sets a value indicating whether the font is bold.
booleanisItalic()
void
setItalic(booleanvalue)
           Gets or sets a value indicating whether the font is italic.
booleanisNormalizeHeights()
void
setNormalizeHeights(booleanvalue)
           Indicates whether the normalization of height that is to be applied to the text run.
booleanisStrikeout()
void
setStrikeout(booleanvalue)
           Gets or sets a value indicating whether the font is single strikeout.
booleanisSubscript()
void
setSubscript(booleanvalue)
           Gets or sets a value indicating whether the font is subscript.
booleanisSuperscript()
void
setSuperscript(booleanvalue)
           Gets or sets a value indicating whether the font is super script.
doublegetKerning()
void
setKerning(doublevalue)
           Specifies the minimum font size at which character kerning will occur for this text run.
java.lang.StringgetLatinName()
void
setLatinName(java.lang.Stringvalue)
           Gets and sets the latin name.
java.lang.StringgetName()
void
setName(java.lang.Stringvalue)
           Gets and sets the name of the shape.
LineFormatgetOutline()
Represents the outline format of the text.
intgetSchemeType()
void
setSchemeType(intvalue)
           Gets and set sthe scheme type of the font. The value of the property is FontSchemeType integer constant.
doublegetScriptOffset()
void
setScriptOffset(doublevalue)
           Gets and sets the sript offset,in unit of percentage
ShadowEffectgetShadow()
Represents a object that specifies shadow effect for the chart element or shape.
intgetSize()
void
setSize(intvalue)
           Gets or sets the size of the font.
doublegetSpacing()
void
setSpacing(doublevalue)
           Specifies the spacing between characters within a text run.
intgetStrikeType()
void
setStrikeType(intvalue)
           Gets the strike type of the text. The value of the property is TextStrikeType integer constant.
ThemeColorgetThemeColor()
void
           Gets and sets the theme color.
intgetUnderline()
void
setUnderline(intvalue)
           Gets or sets the font underline type. The value of the property is FontUnderlineType integer constant.
CellsColorgetUnderlineColor()
void
           Gets or sets the color of underline.
 
Method Summary
booleanequals(Font font)
Checks if two fonts are equals.
java.lang.StringtoString()
Returns a string represents the current Cell object.
 

    • Property Getters/Setters Detail

      • getName/setName

        public java.lang.String getName() / public void setName(java.lang.String value)
        
        Gets and sets the name of the shape.
      • getLatinName/setLatinName

        public java.lang.String getLatinName() / public void setLatinName(java.lang.String value)
        
        Gets and sets the latin name.
      • getFarEastName/setFarEastName

        public java.lang.String getFarEastName() / public void setFarEastName(java.lang.String value)
        
        Gets and sets the FarEast name.
      • getFill

        public FillFormat getFill()
        
        Represents the fill format of the text.
      • getOutline

        public LineFormat getOutline()
        
        Represents the outline format of the text.
      • getShadow

        public ShadowEffect getShadow()
        
        Represents a object that specifies shadow effect for the chart element or shape.
        See Also:
        ShadowEffect
      • getUnderlineColor/setUnderlineColor

        public CellsColor getUnderlineColor() / public void setUnderlineColor(CellsColor value)
        
        Gets or sets the color of underline.
      • getKerning/setKerning

        public double getKerning() / public void setKerning(double value)
        
        Specifies the minimum font size at which character kerning will occur for this text run.
      • getSpacing/setSpacing

        public double getSpacing() / public void setSpacing(double value)
        
        Specifies the spacing between characters within a text run.
      • getCharset/setCharset

        public int getCharset() / public void setCharset(int value)
        
        Represent the character set.
      • isItalic/setItalic

        public boolean isItalic() / public void setItalic(boolean value)
        
        Gets or sets a value indicating whether the font is italic.
      • isBold/setBold

        public boolean isBold() / public void setBold(boolean value)
        
        Gets or sets a value indicating whether the font is bold.
      • getCapsType/setCapsType

        public int getCapsType() / public void setCapsType(int value)
        
        Gets and sets the text caps type. The value of the property is TextCapsType integer constant.
      • getStrikeType/setStrikeType

        public int getStrikeType() / public void setStrikeType(int value)
        
        Gets the strike type of the text. The value of the property is TextStrikeType integer constant.
      • isStrikeout/setStrikeout

        public boolean isStrikeout() / public void setStrikeout(boolean value)
        
        Gets or sets a value indicating whether the font is single strikeout.
      • getScriptOffset/setScriptOffset

        public double getScriptOffset() / public void setScriptOffset(double value)
        
        Gets and sets the sript offset,in unit of percentage
      • isSuperscript/setSuperscript

        public boolean isSuperscript() / public void setSuperscript(boolean value)
        
        Gets or sets a value indicating whether the font is super script.
      • isSubscript/setSubscript

        public boolean isSubscript() / public void setSubscript(boolean value)
        
        Gets or sets a value indicating whether the font is subscript.
      • getUnderline/setUnderline

        public int getUnderline() / public void setUnderline(int value)
        
        Gets or sets the font underline type. The value of the property is FontUnderlineType integer constant.
      • getDoubleSize/setDoubleSize

        public double getDoubleSize() / public void setDoubleSize(double value)
        
        Gets and sets the double size of the font.
      • getSize/setSize

        public int getSize() / public void setSize(int value)
        
        Gets or sets the size of the font.
      • getThemeColor/setThemeColor

        public ThemeColor getThemeColor() / public void setThemeColor(ThemeColor value)
        
        Gets and sets the theme color. If the font color is not a theme color, NULL will be returned.
      • getColor/setColor

        public com.aspose.cells.Color getColor() / public void setColor(com.aspose.cells.Color value)
        
        Gets or sets the com.aspose.cells.Color of the font.
      • getArgbColor/setArgbColor

        public int getArgbColor() / public void setArgbColor(int value)
        
        Gets and sets the color with a 32-bit ARGB value.
      • isNormalizeHeights/setNormalizeHeights

        public boolean isNormalizeHeights() / public void setNormalizeHeights(boolean value)
        
        Indicates whether the normalization of height that is to be applied to the text run.
      • getSchemeType/setSchemeType

        public int getSchemeType() / public void setSchemeType(int value)
        
        Gets and set sthe scheme type of the font. The value of the property is FontSchemeType integer constant.

    setName

    public voidsetName(java.lang.Stringvalue)
    
    Gets and sets the name of the shape.

    setLatinName

    public voidsetLatinName(java.lang.Stringvalue)
    
    Gets and sets the latin name.

    setFarEastName

    public voidsetFarEastName(java.lang.Stringvalue)
    
    Gets and sets the FarEast name.

    setUnderlineColor

    public voidsetUnderlineColor(CellsColor value)
    
    Gets or sets the color of underline.

    setKerning

    public voidsetKerning(doublevalue)
    
    Specifies the minimum font size at which character kerning will occur for this text run.

    setSpacing

    public voidsetSpacing(doublevalue)
    
    Specifies the spacing between characters within a text run.

    setCharset

    public voidsetCharset(intvalue)
    
    Represent the character set.

    setItalic

    public voidsetItalic(booleanvalue)
    
    Gets or sets a value indicating whether the font is italic.

    setBold

    public voidsetBold(booleanvalue)
    
    Gets or sets a value indicating whether the font is bold.

    setCapsType

    public voidsetCapsType(intvalue)
    
    Gets and sets the text caps type. The value of the property is TextCapsType integer constant.

    setStrikeType

    public voidsetStrikeType(intvalue)
    
    Gets the strike type of the text. The value of the property is TextStrikeType integer constant.

    setStrikeout

    public voidsetStrikeout(booleanvalue)
    
    Gets or sets a value indicating whether the font is single strikeout.

    setScriptOffset

    public voidsetScriptOffset(doublevalue)
    
    Gets and sets the sript offset,in unit of percentage

    setSuperscript

    public voidsetSuperscript(booleanvalue)
    
    Gets or sets a value indicating whether the font is super script.

    setSubscript

    public voidsetSubscript(booleanvalue)
    
    Gets or sets a value indicating whether the font is subscript.

    setUnderline

    public voidsetUnderline(intvalue)
    
    Gets or sets the font underline type. The value of the property is FontUnderlineType integer constant.

    setDoubleSize

    public voidsetDoubleSize(doublevalue)
    
    Gets and sets the double size of the font.

    setSize

    public voidsetSize(intvalue)
    
    Gets or sets the size of the font.

    setThemeColor

    public voidsetThemeColor(ThemeColor value)
    
    Gets and sets the theme color. If the font color is not a theme color, NULL will be returned.

    setColor

    public voidsetColor(com.aspose.cells.Colorvalue)
    
    Gets or sets the com.aspose.cells.Color of the font.

    setArgbColor

    public voidsetArgbColor(intvalue)
    
    Gets and sets the color with a 32-bit ARGB value.

    setNormalizeHeights

    public voidsetNormalizeHeights(booleanvalue)
    
    Indicates whether the normalization of height that is to be applied to the text run.

    setSchemeType

    public voidsetSchemeType(intvalue)
    
    Gets and set sthe scheme type of the font. The value of the property is FontSchemeType integer constant.
    • Method Detail

      • equals

        public boolean equals(Font font)
        Checks if two fonts are equals.
        Parameters:
        font - Compared font object.
        Returns:
        True if equal to the compared font object.
      • toString

        public java.lang.String toString()
        Returns a string represents the current Cell object.
        Returns: