Object: BorderLine
- Updated2024-09-12
- 1 minute(s) read
(AdditionalCommentText | FrameElement | FrameLine) > Object: BorderLine
Object: BorderLine
The BorderLine object provides the properties of the frame line of a comment, circle, or rectangle in DIAdem REPORT.
The following example adds a rectangle to the current worksheet and changes the rectangle display:
| VBScript | Python |
Dim oMyFrame, oMyBackgroundColor, oMyPosition , oMyBorderLine Call Report.NewLayout() Set oMyFrame = Report.ActiveSheet.Objects.Add(eReportObjectFrame,"MyFrame") Set oMyBackgroundColor = oMyFrame.BackgroundColor Call oMyBackgroundColor.SetPredefinedColor(eColorIndexRed ) oMyBackgroundColor.Transparency = 50 Set oMyPosition = oMyFrame.Position.ByCoordinate oMyPosition.X1 = 10 oMyPosition.X2 = 40 oMyPosition.Y1 = 50 oMyPosition.Y2 = 80 Set oMyBorderLine = oMyFrame.BorderLine Call oMyBorderLine.Color.SetPredefinedColor(eColorIndexGreen) oMyBorderLine.LineType = eLineTypeDotted oMyBorderLine.Width = eLineWidth0140 Call Report.Refresh()
Returned From
AdditionalCommentText.BorderLine | FrameElement.BorderLine | FrameLine.LineBottom | FrameLine.LineLeft | FrameLine.LineRight | FrameLine.LineTop