Merge;
Merge();
The Merge method merges all the cell range in one cell.
To determine whether there are merged cells, use the ITabRange.Merged property.
To execute the example a form that contains the Button component with the Button1 identifier, the TabSheetBox component with the TabSheetBox1 identifier and the UiTabSheet component with the UiTabSheet1 identifier are required. This example is a handler of the OnClick event for the component Button1.
Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Var
Tsheet: ITabSheet;
Range: ITabRange;
Begin
TSheet := UiTabSheet1.TabSheet;
Range := Tsheet.Cells(0, 0, 5, 5);
Range.Merge;
End Sub Button1OnClick;
After executing the example a cells range is merged into one cell.
To execute the example a form that contains the Button component with the button1 identifier, the TabSheetBoxNet component with the TabSheetBoxNet1 identifier and the UiTabSheetNet component with the UiTabSheetNet1 identifier are required. The example is the Click event handler for the button1 component. Add a link to the Tab system assembly.
Imports Prognoz.Platform.Interop.Tab;
…
Private Sub button1_Click(sender: System.Object; e: System.EventArgs);
Var
Tsheet: ITabSheet;
Range: ITabRange;
Begin
TSheet := uiTabSheetNet1.TabSheetUi.TabSheet;
Range := Tsheet.Cells[0, 0, 5, 5];
Range.Merge();
End Sub;
The result of Fore.NET Example execution matches that in the Fore Example.
See also: