跳到主要内容

UnMerge

Splits the selected merged cell range into the single cells.

Syntax

expression.UnMerge();

expression - A variable that represents a ApiRange class.

Parameters

This method doesn't have any parameters.

Returns

This method doesn't return any data.

Example

This example splits the selected merged cell range into the single cells.

// How to unmerge a range of cells.

// Get a range and split its merged cells.

let worksheet = Api.GetActiveSheet();
worksheet.GetRange("A3:E8").Merge(true);
worksheet.GetRange("A5:E5").UnMerge();