ITabRange.Merge

Syntax

Merge;

Description

The Merge method merges all the cell range in one cell.

Comments

To determine whether there are merged cells, use the ITabRange.Merged property.

Example

Executing the example requires 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. 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(0055);
    Range.Merge;
End Sub Button1OnClick;

After executing the example a cells range is merged into one cell.

See also:

ITabRange