Property: Position for Frame

DIAdem 2018 Help


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

DOWNLOAD (Windows Only)


DIAdem 2017 Help
DIAdem 2018 Help
DIAdem 2019 Help
DIAdem 2020 Help
DIAdem 2020 SP1 Help

Specifies the position of a rectangle in a DIAdem REPORT worksheet.

Set oObjectPosition = Object.Position
ObjectFrame
Object with this property
oObjectPositionObjectPosition
Returned object

The following example generates a rectangle and specifies the position of this rectangle:

Dim oMyFrame, oMyBackgroundColor, oMyPosition, oMyBorderLine, 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
Call Report.Refresh()

WAS THIS ARTICLE HELPFUL?

Not Helpful