All docs
V21.1
21.2 (EAP/Beta)
21.1
20.2
20.1
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+
Row

CellRange.GetDefinedName(DefinedNameScope) Method

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

Namespace: DevExpress.Spreadsheet

Assembly: DevExpress.Spreadsheet.v21.1.Core.dll

Declaration

DefinedName GetDefinedName(
    DefinedNameScope scope
)

Parameters

Name Type Description
scope DefinedNameScope

Specifies the defined name’s scope.

Returns

Type Description
DefinedName

Specifies the name assigned to the current range. Null (Nothing in VB), if no name is found.

Remarks

Use the GetDefinedName method overloads to return a DefinedName object associated with the current cell range. The scope parameter specifies where to search a name: in the DefinedNameCollection collection of the current worksheet (Worksheet.DefinedNames) or the entire workbook (IWorkbook.DefinedNames).

You can also use the Name property to return a string that specifies the range’s name.

Refer to the Defined Names document for more information on defined names.

See Also