IEaxGridHeaderProperties.AutoIndent

Syntax

AutoIndent: TriState;

Description

The AutoIndent property determines whether level element indents are used in the header.

Comments

If the property is set to TriState.OnOption, level element indents are used. If the value is TriState.OffOption, indents are not used.

If the property is set to undefined value TriState.Undefined, the use of indents is inherited from the parent header. The effective value taking into account the inheritance is returned by the IsAutoIndent property.

The property is set to TriState.Undefined by default.

Example

Executing the example requires that the repository contains a regular report with the REPORT identifier. An analytical data area is created in the report.

Add links to the Express, Metabase, Pivot, Report system assemblies.

Sub UserProc;
Var
    MB: IMetabase;
    Report: IPrxReport;
    Grid: IEaxGrid;
    Slice: IEaxDataAreaPivotSlice;
    SettBase: IDataAreaHeaderSettingsBase;
    ViewSett: IEaxGridViewSettings;
    Props: IEaxGridHeaderProperties;
Begin
    // Get table
    MB := MetabaseClass.Active;
    Report := MB.ItemById("REPORT").Edit As IPrxReport;
    Grid := Report.DataArea.Views.Item(0As IEaxGrid;
    // Get data analytical area slice
    Slice := Grid.Slice As IEaxDataAreaPivotSlice;
    // Get basic settings of sidehead headers
    SettBase := Slice.Pivot.LeftHeader As IDataAreaHeaderSettingsBase;
    // Get table view settings
    ViewSett := Grid.ViewSettings;
    // Change settings of level elements indents and expanders
    Props := ViewSett.GetViewSettings(SettBase) As IEaxGridHeaderProperties;
    Props.AutoIndent := Tristate.OffOption;
    Props.Hierarchical := Tristate.OffOption;
    Report.MetabaseObject.Save;
End Sub UserProc;

After executing the example the use of expanders and level element indents is disabled in analytical data area sidehead.

See also:

IEaxGridHeaderProperties