ElementFullName(SlotIndex: Integer; ElementIndex: Integer): String;
SlotIndex. Index of the header slot.
ElementIndex. Index of the header element.
The ElementFullName property returns the full name of a defined element in the sidehead of a header.
Full element name includes the element hierarchy.
The SlotIndex parameter value must be less than the ILanerHeader.SlotCount property value.
The value of the ElementIndex parameter must be less than the ILanerHeader.ElementCount property value.
Executing the example requires a form with the following components: the Button component named Button1, the LanerBox component named LanerBox1, and the UiErAnalyzer component named UiErAnalyzer1. UiErAnalyzer1 is a data source for LanerBox1. A working area of the time series database must be loaded to UiErAnalyzer1. One or several series attributes must be displayed in thenbsp;LanerBox component.
The example is a handler of the OnClick event for the Button1 component.
Add links to the Express, ExtCtrls, Forms, Laner, and Tab system assemblies.
Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Var
Analyzer: IEaxAnalyzer;
Laner: Ilaner;
Table: ILanerTable;
LeftHeader: ILanerLeftHeader;
SlotCount: Integer;
Begin
Analyzer := UiErAnalyzer1.ErAnalyzer;
Laner := Analyzer.Laner;
Table := Laner.Execute;
LeftHeader := Table.LeftHeader;
SlotCount := LeftHeader.SlotCount - 1;
If SlotCount > 0 Then
Debug.WriteLine(LeftHeader.ElementFullName(SlotCount, 0));
End If;
End Sub Button1OnClick;
After executing the example the console window displays the full name of the first element of the last sidehead column.
See also: