IPrxDataIslandDimensionLayoutNode.MoveTo

Syntax

MoveTo(Node: IPrxDataIslandDimensionLayoutNode; Mode: NodeAttachMode);

Parameters

Node - element of the tree of an arbitrary title, with respect to which the element is to be moved.

Mode - determines position of the moved element.

Description

The MoveTo method moves an element of a heading to the specified position.

Example

The following example assumes that there is the Report object with the IPrxReport type.

Sub UserProc;

Var

Report: IPrxReport;

DIs: IPrxDataIslands;

DI: IPrxDataIsland;

Prop: IPrxDataIslandProperties;

Dim : IDimInstance;

DimProp : IPrxDataIslandDimension;

Element : IPrxDataIslandDimensionLayoutNode;

RN : IPrxDataIslandDimensionLayoutNodes;

Begin

DIs := Report.DataIslands;

DI := DIs.Item(0).Edit;

Prop := DI.Properties;

Dim := DI.Slice.LeftHeader.Item(0).Dimension;

DimProp := Prop.Dimension(Dim.Dimension);

RN := DimProp.Layout.RootNodes;

Element := RN.Item(0).Children.Item(17);

Element.MoveTo(RN.Item(1), NodeAttachMode.AddChildFirst);

DI.Save;

End Sub UserProc;

After executing the example the element of an arbitrary title is moved to the specified position.

See also:

IPrxDataIslandDimensionLayoutNode