StartValue: Double;
The StartValue property determines initial value of the numeric scale.
To use the property, the IGxNumericScale.UseAutoValues property must be set to True.
To set end value of numeric scale, use the IGxNumericScale.EndValue property.
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 second element
DimSel.SelectElement(1, False);
// Set scale for font sizes
NumScale := Style.IndicatorScale(EaxGridIndicatorType.FontSize) As IGxNumericScale;
// Use automatic values
NumScale.UseAutoValues := True;
// Set start font size
NumScale.StartValue := 8;
// Set end font size
NumScale.EndValue := 20;
// Get selection and change element to update table
DimSel := Express.Grid.IndicatorSelection(EaxGridIndicatorType.FontSize);
Dimsel.SelectElement(0, False);
// Save changes
(Express As IMetabaseObject).Save;
End Sub UserProc;
After executing the example font size of value area will be changed. The font is increased from the top left angle to the bottom right angle of value area.
See also: