All docs
V19.2
19.2
19.1
The page you are viewing does not exist in version 19.1. This link will take you to the root page.
18.2
The page you are viewing does not exist in version 18.2. This link will take you to the root page.
18.1
The page you are viewing does not exist in version 18.1. This link will take you to the root page.
17.2
The page you are viewing does not exist in version 17.2. This link will take you to the root page.
.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+
.NET Core 3.0+
Row

CellRange Methods

Defines a range of cells and serves as the base for the Cell, CellCollection, Column and Row interfaces.

Name Description
BeginUpdate()

Locks the Formatting object by preventing visual updates until the EndUpdate method is called.

(Inherited from Formatting)
BeginUpdateFormatting()

Starts modifying the cell range formatting.

Calculate()

Forces recalculation of the current cell range.

Contains(CellRange)

Determines whether the current cell range contains the specified range.

CopyFrom(CellRange)

Copies the specified range of cells into the current range.

CopyFrom(CellRange, PasteSpecial)

Copies the source range of cells and pastes the specified part of the copied data into the current cell range.

CopyFrom(CellRange, PasteSpecial, Boolean)

Copies the source range of cells and pastes the specified part of the copied data into the current cell range.

EndUpdate()

Unlocks the Formatting object after a call to the BeginUpdate method and causes an immediate visual update.

(Inherited from Formatting)
EndUpdateFormatting(Formatting)

Finalizes the modification of the cell range formatting after calling the CellRange.BeginUpdateFormatting method.

Equals(Object)

Determines whether or not the specified object is equal to the current Formatting instance.

(Inherited from Formatting)
Exclude(CellRange)

Excludes the specified cell or cell range from the current range.

GetDataSource()

Creates the data source from the current cell range.

GetDataSource(RangeDataSourceOptions)

Creates the data source from the current cell range using the specified options.

GetDefinedName()

Returns a defined name associated with the current range.

GetDefinedName(DefinedNameScope)

Returns a defined name declared in the specified scope and associated with the current cell range.

GetEnumerator() Returns an enumerator that iterates through the collection.
(Inherited from IEnumerable<T>)
GetMergedRanges()

Returns merged ranges intersecting the current cell range.

GetMinimumCover()

Returns the cell range that covers the current range and does not contain the intersecting ranges.

GetRangeWithAbsoluteReference()

Returns the copy of the source range with its reference replaced by the absolute reference.

GetRangeWithRelativeReference()

Returns the copy of the source range with its reference replaced by the relative reference.

GetReferenceA1()

Gets the relative cell or cell range reference in the A1 reference style.

GetReferenceA1(ReferenceElement)

Gets the cell or cell range reference in the A1 reference style.

GetReferenceR1C1(Cell)

Gets the relative cell or cell range reference in the R1C1 reference style.

GetReferenceR1C1(ReferenceElement, Cell)

Gets the cell or cell range reference in the R1C1 reference style.

GetRichText()

Gets the rich text string contained in a cell.

Intersect(CellRange)

Returns the cell range that is the intersection of the current and specified ranges.

IsIntersecting(CellRange)

Determines whether the current range intersects with the specified range.

MoveTo(CellRange)

Moves a range to a specified location.

Offset(Int32, Int32)

Returns the cell range that is offset by the specified number of rows and columns from the current range.

Resize(Int32, Int32)

Resizes the current cell range.

Search(String)

Performs a search in the cell range using the default parameters.

Search(String, SearchOptions)

Performs a search in the cell range using specified options.

SetInsideBorders(Color, BorderLineStyle)

Sets all inside borders of the cell range.

SetRichText(RichTextString)

Assigns the rich formatted text to a cell.

SetValue(Object)

Converts the specified object to the cell value.

SetValueFromText(String)

Parses the supplied string and creates a cell value to assign it to the cells in the current range.

SetValueFromText(String, Boolean)

Parses the supplied string and creates a cell value to assign it to the cells in the current range.

Union(CellRange)

Creates a complex range that is the union of multiple ranges.

See Also