Method: Move for Areas
- Updated2024-09-12
- 2 minute(s) read
DIAdem VIEW > Methods > Method: Move for Areas
Method: Move for Areas
Moves an area in DIAdem VIEW and splits the specified target area in the same worksheet. Use the MoveArea for Sheet method to move an area to another worksheet. Use the CopyArea for Sheet or the Copy for Areas method to move an area.
Set oArea = Object.Move(SourceAreaNameOrIndex, TargetAreaNameOrIndex, enumSplitDirection, Ratio)
| Object | Areas Object with this method | ||||||||||||
| SourceAreaNameOrIndex | Variant Specifies the name or the index of the area DIAdem moves. | ||||||||||||
| TargetAreaNameOrIndex | Variant Specifies the name or index of the target area. | ||||||||||||
| enumSplitDirection | LongInteger Specifies the relative position of the moved area to the target 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 moved area occupies. If the split ratio is 0.25, the moved area takes up a quarter of the original area. | ||||||||||||
| oArea | Area Returned object of the moved area. |
The following example moves the first area to the right of the second area in the active worksheet. The moved area occupies one quarter of the target area.
| VBScript | Python |
Dim oMyAreas, oMyMovedArea Set oMyAreas = View.ActiveSheet.Areas Set oMyMovedArea = oMyAreas.Move(1, 2, eSplitRight , 0.25)
See Also
Objects Overview | CopyArea for Sheet | Copy for Areas | MoveArea for Sheet
Examples
Alignment Functions in DIAdem VIEW | Automatic Display of Harmonic Frequencies | Bird's Eye View Display | Calculating a Tangent to a Curve | Contour Display in DIAdem VIEW | Creating and Viewing Long Data Channels | Dynamic Display of Statistical Characteristic Values in DIAdem VIEW | Overlaying Objects in Videos | Planetary Motion | Synchronizing Videos and Data | Synchronizing Videos and Waveform Data | User Dialog Box in VIEW for the Calculation of the FFT and Harmonic Frequencies | Using a User Command to Calculate the Difference between the Y-Values | Various Display Modes in DIAdem VIEW | Vibration Data Analysis with Parallel Processing | Viewing and Automatically Analyzing Data