SpecificRange(RangeType: EaxRangeType): ITabRange;
SpecificRange[RangeType: Prognoz.Platform.Interop.Express.EaxRangeType]: Prognoz.Platform.Interop.Tab.ITabRange;
RangeType. The type of integral part of express report table.
The SpecificRange property returns the cell range for the integral part type of express report table.
The type value of the integral part of the express report table is passed by the RangeType parameter (data cells, row header cells, column header cells, cells of the corner, legend cells, totals cells, calculated factors cells, Pareto analysis cells, ranking cells).
Create the form to execute an example, then connect the Tab system assembly, locate the Button1 button, the TabSheetBox component named TabSheetBox1 and the UiErAnalyzer1 component named UiErAnalyzer1 on the form. Select the express report with EXP1 identifier as an object of the UiErAnalyze component. Select the UiErAnalyzer1 as a data source for the TabSheetBox component and the True value for the Active property of the UiErAnalyzer component.
Class TestForm: Form
Button1: Button;
UiErAnalyzer1: UiErAnalyzer;
TabSheetBox1: TabSheetBox;
ex : IEaxAnalyzer;
…
Sub TestFormOnShow(Sender: Object; Args: IEventArgs);
Begin
ex := UiErAnalyzer1.ErAnalyzer;
End Sub TestFormOnShow;
…
Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Begin
ex.Grid.TabSheet.View.Selection.Range := ex.Grid.SpecificRange(EaxRangeType.Internal);
End Sub Button1OnClick;
End Class TestForm;
The cell range is selected in the express report table by clicking the Button1 button.
Create a .NET form to execute an example, then connect the Tab system assembly, locate the Button1 button, the TabSheetBoxNet component named TabSheetBoxNet1 and the UiErAnalyzerNet component named UiErAnalyzerNet1 on the form. Select the express report with EXP1 identifier as an object of the UiErAnalyzeNet component. Select the UiErAnalyzerNet1 as a data source for the TabSheetBoxNet component and the True value for the Active property of the UiErAnalyzerNet component.
Imports Prognoz.Platform.Interop.Tab;
Imports Prognoz.Platform.Interop.ForeSystem;
Imports Prognoz.Platform.Interop.Express;
…
Public Partial Class TestForm: Prognoz.Platform.Forms.Net.ForeNetForm
ex : IEaxAnalyzer;
Public Constructor TestForm();
Begin
InitializeComponent();
End Constructor;
Private Sub TestForm_Shown(sender: System.Object; e: System.EventArgs);
Begin
ex := UiErAnalyzerNet1.AnalyzerUi.Instance As IEaxAnalyzer;
End Sub;
Private Sub button1_Click(sender: System.Object; e: System.EventArgs);
Begin
ex.Grid.TabSheet.View.Selection.Range := ex.Grid.SpecificRange[EaxRangeType.ertInternal];
End Sub;
End Class;
The cell range is selected in the express report table by clicking the Button1 button.
See also: