Object: Shadow
- Updated2024-09-12
- 1 minute(s) read
(ReportObjects | SelectedObjects) > Frame > Object: Shadow
Object: Shadow
The Shadow object provides the shadow properties of a Rectangle or Circle type object in DIAdem REPORT.
The following example adds a rectangle with a shadow to the current worksheet:
| VBScript | Python |
Dim oMyFrame, oMyBackgroundColor, oMyPosition, oMyShadow Call Report.NewLayout() Set oMyFrame = Report.ActiveSheet.Objects.Add(eReportObjectFrame,"MyFrame") Set oMyBackgroundColor = oMyFrame.BackgroundColor Call oMyBackgroundColor.SetPredefinedColor(eColorIndexRed ) Set oMyPosition = oMyFrame.Position.ByCoordinate oMyPosition.X1 = 10 oMyPosition.X2 = 40 oMyPosition.Y1 = 50 oMyPosition.Y2 = 80 Set oMyShadow = oMyFrame.Shadow Call oMyShadow.Color.SetPredefinedColor(eColorIndexBlue) oMyShadow.Direction = eShadowDirectionLeftBottom oMyShadow.OffsetX = 1 oMyShadow.OffsetY = 2 Call Report.Refresh()