aspose.cells

Class TextEffectFormat

Contains properties and methods that apply to WordArt objects.

Example:

//Instantiating a Workbook object
$workbook = new cells\Workbook();
$shapes = $workbook->getWorksheets()->get(0)->getShapes();
$shapes->addTextEffect(cells\MsoPresetTextEffect::TEXT_EFFECT_1, "Aspose", "Arial", 30, false, false, 0, 0, 0, 0, 100, 200);
$textEffectFormat = $shapes->get(0)->getTextEffect();
$textEffectFormat->setTextEffect(cells\MsoPresetTextEffect::TEXT_EFFECT_10);

Property Getters/Setters Summary
functiongetFontBold()
function
           Indicates whether font is bold.
functiongetFontItalic()
function
           Indicates whether font is italic.
functiongetFontName()
function
           The name of the font used in the WordArt.
functiongetFontSize()
function
           The size (in points) of the font used in the WordArt.
functiongetPresetShape()
function
           Gets and sets the preset shape type. The value of the property is MsoPresetTextEffectShape integer constant.
functiongetRotatedChars()
function
           If true,characters in the specified WordArt are rotated 90 degrees relative to the WordArt's bounding shape.
functiongetText()
function
setText(value)
           The text in the WordArt.
 
Method Summary
functionsetTextEffect(effect)
Sets the preset text effect.
 

    • Property Getters/Setters Detail

      • getText/setText : String 

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

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

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

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

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

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

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

      • setTextEffect

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