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 FontSetting objects. After accessing it, please set the Shadow via FontSetting.TextOptions.Shadow.PresetType.PresetType property. This property is of the type PresetShadowType which has several values. Some of these are
- OffsetDiagonalBottomRight
- OffsetBottom
- OffsetDiagonalTopRight
- InsideLeft
- InsideCenter
- PerspectiveDiagonalUpperLeft
- PerspectiveDiagonalLowerRight
The following code snippet demonstrates the use of FontSetting.TextOptions.Shadow.PresetType.PresetType property to set shadow of text effects of Shape or TextBox.