[]
Specifies the auto merge mode.
Used with AutoMerge(IRange, AutoMergeDirection, AutoMergeMode, AutoMergeSelectionMode) to control how neighboring cells with the same value are merged.
public enum AutoMergeMode
Public Enum AutoMergeMode
worksheet.Range["A1:A4"].Value = new object[,] {
{"Apple"}, {"Apple"}, {"Banana"}, {"Banana"}
};
worksheet.AutoMerge(worksheet.Range["A1:A4"], AutoMergeDirection.Column, AutoMergeMode.Free);
| Name | Description |
|---|---|
| Free | Indicates to apply the auto merge when neighboring cells have same value. |
| Restricted | Indicates to apply the auto merge when neighboring cells have same value and the corresponding cells in previous row or column are merged automatically. |