asposecells.api

Class TextEffectFormat

Contains properties and methods that apply to WordArt objects.

Example:

# Instantiating a Workbook object
workbook = Workbook()
shapes = workbook.getWorksheets().get(0).getShapes()
shapes.addTextEffect(MsoPresetTextEffect.TEXT_EFFECT_1, "Aspose", "Arial", 30, False, False, 0, 0, 0, 0, 100, 200)
textEffectFormat = shapes.get(0).getTextEffect()
textEffectFormat.setTextEffect(MsoPresetTextEffect.TEXT_EFFECT_10)
workbook.save("Book1.xls")

Property Getters/Setters Summary
methodgetFontBold()
method
           Indicates whether font is bold.
methodgetFontItalic()
method
           Indicates whether font is italic.
methodgetFontName()
method
           The name of the font used in the WordArt.
methodgetFontSize()
method
           The size (in points) of the font used in the WordArt.
methodgetPresetShape()
method
           Gets and sets the preset shape type. The value of the property is MsoPresetTextEffectShape integer constant.
methodgetRotatedChars()
method
           If true,characters in the specified WordArt are rotated 90 degrees relative to the WordArt's bounding shape.
methodgetText()
method
setText(value)
           The text in the WordArt.
 
Method Summary
methodsetTextEffect(effect)
Sets the preset text effect.
 

    • Property Getters/Setters Detail

      • getText/setText : String 

        String getText() / setText(value)
        
        The text in the WordArt.
      • getFontName/setFontName : String 

        String getFontName() / setFontName(value)
        
        The name of the font used in the WordArt.
      • getFontBold/setFontBold : boolean 

        boolean getFontBold() / setFontBold(value)
        
        Indicates whether font is bold.
      • getFontItalic/setFontItalic : boolean 

        boolean getFontItalic() / setFontItalic(value)
        
        Indicates whether font is italic.
      • getRotatedChars/setRotatedChars : boolean 

        boolean getRotatedChars() / setRotatedChars(value)
        
        If true,characters in the specified WordArt are rotated 90 degrees relative to the WordArt's bounding shape.
      • getFontSize/setFontSize : int 

        int getFontSize() / setFontSize(value)
        
        The size (in points) of the font used in the WordArt.
      • getPresetShape/setPresetShape : int 

        int getPresetShape() / setPresetShape(value)
        
        Gets and sets the preset shape type. The value of the property is MsoPresetTextEffectShape integer constant.
    • Method Detail

      • setTextEffect

         setTextEffect(effect)
        Sets the preset text effect.
        Parameters:
        effect: int - A MsoPresetTextEffect value. The preset text effect.