Skip to main content

IXlMergedCells Members

Represents a collection of merged cells in a worksheet.

Properties

Name Description
Count Gets the number of elements contained in the ICollection. Inherited from ICollection.
IsSynchronized Gets a value indicating whether access to the ICollection is synchronized (thread safe). Inherited from ICollection.
Item[Int32] Provides access to the merged cell by its index in the collection.
SyncRoot Gets an object that can be used to synchronize access to the ICollection. Inherited from ICollection.

Methods

Name Description
Add(XlCellRange, Boolean) Merges cells in the specified cell range and appends the resulting merged range to the end of the collection.
Add(XlCellRange) Merges cells in the specified cell range and appends the resulting merged range to the end of the collection.
Clear() Removes all merged cells from the collection.
Contains(XlCellRange) Determines whether the collection contains the specified merged cell.
CopyTo(Array, Int32) Copies the elements of the ICollection to an Array, starting at a particular Array index. Inherited from ICollection.
GetEnumerator() Returns an enumerator that iterates through the collection. Inherited from IEnumerable<T>.
IndexOf(XlCellRange) Returns the index of the specified merged cell in the collection.
Remove(XlCellRange) Removes the specified merged cell from the collection.
RemoveAt(Int32) Removes the merged cell at the specified index from the collection.
See Also