DIAdem Help

Method: SplitLeft for Area

  • Updated2024-09-12
  • 1 minute(s) read

Method: SplitLeft for Area

Creates a new area and splits the specified area in DIAdem VIEW. The new area is created to the left of the active area.

Set oArea = Object.SplitLeft(Name, Ratio)
ObjectArea
Object with this method
NameString
Specifies the name of the new area.
RatioDouble
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.
oAreaArea
Returned object

The following example creates a new worksheet and splits the worksheet into several areas:

VBScriptPython

 

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)