Property: Position for RTFText

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 Text object in a DIAdem REPORT worksheet.

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

The following example generates a text object, specifies the position of the text object, and then exports the text object into the graphics file MyRtfText.png:

Dim oMyRTFText, oMyRTFTextPosition
Call Report.NewLayout()
Set oMyRTFText = Report.ActiveSheet.Objects.Add(eReportObjectRTFText,"MyRtfText")
Set oMyRTFTextPosition = oMyRTFText.Position
oMyRTFTextPosition.ByCoordinate.X1 = 100
oMyRTFTextPosition.ByCoordinate.X2 = 30
oMyRTFTextPosition.ByCoordinate.Y1 = 50
oMyRTFTextPosition.ByCoordinate.Y2 = 10
Call Report.Refresh()
Call oMyRTFText.ExportToImage("MyRtfText",eImageExportTypePNG)

WAS THIS ARTICLE HELPFUL?

Not Helpful