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.GetRangeWithAbsoluteReference() Method

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

Namespace: DevExpress.Spreadsheet

Assembly: DevExpress.Spreadsheet.v19.2.Core.dll

Declaration

CellRange GetRangeWithAbsoluteReference()
Function GetRangeWithAbsoluteReference As CellRange
CellRange GetRangeWithAbsoluteReference()
Function GetRangeWithAbsoluteReference As CellRange
CellRange GetRangeWithAbsoluteReference()
Function GetRangeWithAbsoluteReference As CellRange

Returns

Type Description
CellRange

A CellRange object with the absolute reference.

Returns

Type Description
CellRange

A CellRange object with the absolute reference.

Returns

Type Description
CellRange

A CellRange object with the absolute reference.

Remarks

Use the CellRange.GetRangeWithRelativeReference method to convert the source range to the range with the relative reference.

Examples

This example demonstrates how to use the CellRange.GetRangeWithAbsoluteReference and CellRange.GetRangeWithRelativeReference methods to get a range object with the source range reference converted to the absolute or relative reference, respectively.

using DevExpress.Spreadsheet;
// ...

Worksheet worksheet = spreadsheetControl.Document.Worksheets[0];
CellRange range = worksheet.Range["A$1:B$5"];

// Return the range with the absolute range reference - "$A$1:$B$5".
CellRange absRange = range.GetRangeWithAbsoluteReference();

// Return the range with the relative range reference - "A1:B5".
CellRange relRange = range.GetRangeWithRelativeReference();
See Also