NamedRange::MergeCells Property

 

Gets or sets a value that indicates whether the NamedRange control contains merged cells.

Namespace:   Microsoft.Office.Tools.Excel
Assembly:  Microsoft.Office.Tools.Excel (in Microsoft.Office.Tools.Excel.dll)

property Object^ MergeCells {
	Object^ get();
	void set(Object^ value);
}

Property Value

Type: System::Object^

true if the NamedRange control contains merged cells; otherwise, false.

The following code example displays the value of the MergeArea and MergeCells properties of a single-cell NamedRange before and after using the Merge method to merge a multiple-cell NamedRange that contains the single-cell NamedRange.

This example is for a document-level customization.

No code example is currently available or this language may not be supported.
Return to top
Show: