Object: 2DAxisGridLine
- Updated2024-09-12
- 1 minute(s) read
(ReportObjects | SelectedObjects) > 2DAxisSystem > 2DAxisSettings > 2DAxisGrid > Object: 2DAxisGridLine
Object: 2DAxisGridLine
The 2DAxisGrid object provides the grid properties of a 2D axis system in DIAdem REPORT.
The following example generates a 2D axis system, enables the grid display with miniticks, and specifies the grid properties:
| VBScript | Python |
Dim oMy2DAxisSystem, oMyPos, oMySettings, oMyHLine, oMyVLine Call Report.NewLayout() Set oMy2DAxisSystem = Report.ActiveSheet.Objects.Add(eReportObject2DAxisSystem, "My2DAxisSystem") Set oMyPos = oMy2DAxisSystem.Position.ByCoordinate oMyPos.X1 = 20 oMyPos.X2 = 80 oMyPos.Y1 = 20 oMyPos.Y2 = 80 Set oMySettings = oMy2DAxisSystem.Settings oMySettings.Grid.DisplayMode = e2DAxisGridModeGrid 'oMySettings.Grid.MiniTickGrid.Visible = True Set oMyHLine = oMySettings.Grid.LineHorizontal oMyHLine.LineType = e2DGridLineTypeDashDot oMyHLine.Interval = 5 oMyHLine.Width = eLineWidth0100 Set oMyVLine = oMySettings.Grid.LineVertical oMyVLine.LineType = e2DGridLineTypeDotsPerTick oMyVLine.DotsPerTick = 10 oMyVLine.Width = eLineWidth0100 Call Report.Refresh()
Properties
DotsPerTick | Interval | LineType | Width