Setting Shadow of Text Effects of Shape or TextBox with Golang via C++
Contents
[
Hide
]
You can set the Shadow of Text Effects of any Shape or TextBox. Please use the Shape.GetTextBody() property. It presents the setting of the shape’s text and returns FontSetting objects. After accessing it, please set the Shadow via FontSetting.GetPresetType() 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.GetPresetType() property to set shadow of text effects of Shape or TextBox.