Setting Shadow of Text Effects of Shape or TextBox
Contents
[
Hide
]
You can set the Shadow of Text Effects of any Shape or TextBox. Please use the Shape.TextBody property. It presents the setting of the shape’s text and returns FontSettingCollection. After accessing FontSetting from it, please set the Shadow via FontSetting.getTextOptions().getShadow().setPresetType() property. This property is of type PresetShadowType which has several values. Some of these are
Setting Shadow of Text Effects of Shape or TextBox
The following screenshot shows the output excel file generated with the following sample code. The screenshot also shows the value of the Shadow which has been set as Offset Bottom.