Object: Shadow

DIAdem 2018 Help


Edition Date: June 2018
Part Number: 370858P-01
View Product Info

DOWNLOAD (Windows Only)


DIAdem 2012 Help
DIAdem 2014 Help
DIAdem 2015 Help
DIAdem 2017 Help
DIAdem 2018 Help
DIAdem 2019 Help

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:

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()

Properties

Color | Direction | OffsetX | OffsetY

Returned From

Frame.Shadow

WAS THIS ARTICLE HELPFUL?

Not Helpful