Value(Index: Integer): Double;
Value[Index: integer]: double;
Index. Interval index of numeric scale.
The Value property determines numeric value scale by interval index.
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.
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(1, False);
// 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(0, False);
// 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.
The requirements and result of the Fore.NET example execution match with those in the Fore example.
Imports Prognoz.Platform.Interop.Dimensions;
Imports Prognoz.Platform.Interop.Drawing;
Imports Prognoz.Platform.Interop.Express;
…
Public Shared Sub Main(Params: StartParams);
Var
MB: IMetaBase;
Express: IEaxAnalyzer;
Style: IEaxTableStyle;
DimSel: IDimSelection;
NumScale: IGxNumericScale;
Begin
// Get repository
MB := Params.Metabase;
// 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.egitFontSize As Integer];
// Select second element
DimSel.SelectElement(1, False);
// Set scale for font sizes
NumScale := Style.IndicatorScale[EaxGridIndicatorType.egitFontSize] 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.egitFontSize As Integer];
Dimsel.SelectElement(0, False);
// Save changes
(Express As IMetabaseObject).Save();
End Sub;
See also: