Back to Devexpress

CellRange.GetDefinedName() Method

officefileapi-devexpress-dot-spreadsheet-dot-cellrange-b4d1da1b.md

latest1.9 KB
Original Source

CellRange.GetDefinedName() Method

Returns a defined name associated with the current range.

Namespace : DevExpress.Spreadsheet

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

NuGet Package : DevExpress.Spreadsheet.Core

Declaration

csharp
DefinedName GetDefinedName()
vb
Function GetDefinedName As DefinedName

Returns

TypeDescription
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. This method first searches for the name in the Worksheet.DefinedNames collection. If the name is not found in the worksheet, the search continues in the workbook’s collection of defined names (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

Name

CellRange Interface

CellRange Members

DevExpress.Spreadsheet Namespace