IPrxControl.Dimension

Syntax

Dimension: IPrxSliceDimension;

Description

The Dimension property determines the controlled dimension.

Comments

The property is relevant only on working with data area. To work with data area, use properties and methods of the IPrxDataIsland interface.

Example

Executing the example requires that the repository contains a regular report with the DATA_AREA identifier.

Add links to the Metabase, Report system assemblies.

Sub UserProc;
Var
    MB: IMetabase;
    Report: IPrxReport;
    Contrls: IPrxControls;
    Contrl: IPrxControl;
    Dimens: IPrxSliceDimension;
    s: String;
Begin
    MB := MetabaseClass.Active;
    Report := MB.ItemById(
"DATA_AREA").Bind As IPrxReport;
    Contrls := Report.Controls;
    Contrl := Contrls.Item(
0);
    Dimens := Contrl.Dimension;
    s := Dimens.Name;
    Debug.WriteLine(s);
End Sub UserProc;

After executing the example the console window displays name of controlled dimension.

See also:

IPrxControl