Object: Frame
- Updated2024-09-12
- 1 minute(s) read
(ReportObjects | SelectedObjects) > Object: Frame
Object: Frame
The Frame object provides a rectangle in DIAdem REPORT.
The following example adds a rectangle to the current worksheet, changes the rectangle display, and then exports the rectangle to the graphics file MyFrame.png:
| VBScript | Python |
Dim oMyFrame, oMyBackgroundColor, oMyBorderLineColor, oMyShadowColor Call Report.NewLayout() Set oMyFrame = Report.ActiveSheet.Objects.Add(eReportObjectFrame,"MyFrame") oMyFrame.ForceSquare = True Set oMyBackgroundColor = oMyFrame.BackgroundColor Call oMyBackgroundColor.SetPredefinedColor(eColorIndexRed ) oMyBackgroundColor.Transparency = 50 oMyFrame.Position.ByCoordinate.X1 = 10 oMyFrame.Position.ByCoordinate.X2 = 40 oMyFrame.Position.ByCoordinate.Y1 = 50 oMyFrame.Position.ByCoordinate.Y2 = 80 Set oMyBorderLineColor = oMyFrame.BorderLine.Color Call oMyBorderLineColor.SetPredefinedColor(eColorIndexGreen) oMyFrame.BorderLine.LineType = eLineTypeDotted oMyFrame.BorderLine.Width = eLineWidth0140 Set oMyShadowColor = oMyFrame.Shadow.Color Call oMyShadowColor.SetPredefinedColor(eColorIndexBlue) oMyFrame.Shadow.Direction = eShadowDirectionLeftBottom oMyFrame.Shadow.OffsetX = 1 oMyFrame.Shadow.OffsetY = 2 Call oMyFrame.ExportToImage("D:\MyFrame",eImageExportTypePNG)
Properties
BackgroundColor | BorderLine | ForceSquare | Index | IsSelected | Name | ObjectType | Position | Shadow | TagStored | TagTemporary
Methods
Returned From
ReportObjects.Add | ReportObjects.Copy | ReportObjects.Item | SelectedObjects.Item | ToolTipFrameContext.Frame