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.text_body property. It presents the setting of the shape’s text and returns FontSetting objects. After accessing it, please set the Shadow via FontSetting.text_options.shadow.preset_type property. This property is of the type PresetShadowType which has several values. Some of these are
- OFFSET_DIAGONAL_BOTTOM_RIGHT
- OFFSET_BOTTOM
- OFFSET_DIAGONAL_TOP_RIGHT
- INSIDE_LEFT
- INSIDE_CENTER
- PERSPECTIVE_DIAGONAL_UPPER_LEFT
- PERSPECTIVE_DIAGONAL_UPPER_RIGHT
The following code snippet demonstrates the use of FontSetting.text_options.shadow.preset_type property to set shadow of text effects of Shape or TextBox.