Method: SplitBottom for Area
- Updated2024-09-12
- 1 minute(s) read
DIAdem VIEW > Methods > Method: SplitBottom for Area
Method: SplitBottom for Area
Creates a new area and splits the specified area in DIAdem VIEW. The new area is created underneath the active area.
Set oArea = Object.SplitBottom(Name, Ratio)
| Object | Area Object with this method |
| Name | String Specifies the name of the new area. |
| Ratio | Double Specifies the split ratio for values from 0 to 1. The split ratio is the part of the original area which the new area occupies. If the split ratio is 0.25, the new area takes up a quarter of the original area. |
| oArea | Area Returned object |
The following example creates a new worksheet and splits the worksheet into several areas:
| VBScript | Python |
Dim oMySheet: Set oMySheet = View.Sheets.Add("NewSheet") Dim oMyArea: Set oMyArea = oMySheet.ActiveArea Dim oMyTopArea: Set oMyTopArea = oMyArea.SplitTop("TopArea",0.5) Dim oMyRightArea: Set oMyRightArea = oMyTopArea.SplitRight("RightArea",0.5) Dim oMyBottomArea: Set oMyBottomArea = oMyRightArea.SplitBottom("BottomArea",0.5) Dim oMyLeftArea: Set oMyLeftArea = oMyBottomArea.SplitLeft("LeftArea",0.5)