IGxNumericScale.Value

Syntax

Value(Index: Integer): Double;

Parameters

Index. Interval index of numeric scale.

Description

The Value property determines numeric value scale by interval index.

Comments

The property is called as many times as intervals are set in the IGxNumericScale.IntervalsCount property.

To use the property, the IGxNumericScale.UseAutoValues property must be set to False.

Example

Executing the example requires that the repository contains an express report with the EXPRESS_SCALE identifier. The report contains a table based on a cube. The cube contains a non-hidden fixed dimension, which has metrics display set up.

Add links to the Dimensions, Drawing, Express, Metabase system assemblies.

Sub UserProc;
Var
    MB: IMetaBase;
    Express: IEaxAnalyzer;
    Style: IEaxTableStyle;
    DimSel: IDimSelection;
    NumScale: IGxNumericScale;
Begin
    // Get repository
    MB := MetabaseClass.Active;
    // Get regular report
    Express := MB.ItemById("EXPRESS_SCALE").Edit As IEaxAnalyzer;
    // Get table formatting parameters
    Style := Express.Grid.Style;
    // Get selection of fixed dimension
    DimSel := Express.Grid.IndicatorSelection(EaxGridIndicatorType.FontSize);
    // Select first element
    DimSel.SelectElement(1False);
    // Set scale for font sizes
    NumScale := Style.IndicatorScale(EaxGridIndicatorType.FontSize) As IGxNumericScale;
    // Not use automatic values
    NumScale.UseAutoValues := False;
    // Set number of intervals
    NumScale.IntervalsCount := 4;
    // Set font size for each interval
    NumScale.Value(0) := 5;
    NumScale.Value(1) := 14;
    NumScale.Value(2) := 26;
    NumScale.Value(3) := 3;
    // Get selection and change element to update table
    DimSel := Express.Grid.IndicatorSelection(EaxGridIndicatorType.FontSize);
    Dimsel.SelectElement(0False);
    // Save changes
    (Express As IMetabaseObject).Save;
End Sub UserProc;

After executing the example, the font size of value area will be changed according to set parameters. The font is increased from the top left angle to the bottom right angle of value area.

See also:

IGxNumericScale