Back to Devexpress

CellRange.GetDefinedName(DefinedNameScope) Method

officefileapi-devexpress-dot-spreadsheet-dot-cellrange-dot-getdefinedname-x28-devexpress-dot-spreadsheet-dot-definednamescope-x29.md

latest2.4 KB
Original Source

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.v25.2.Core.dll

NuGet Package : DevExpress.Spreadsheet.Core

Declaration

csharp
DefinedName GetDefinedName(
    DefinedNameScope scope
)
vb
Function GetDefinedName(
    scope As DefinedNameScope
) As DefinedName

Parameters

NameTypeDescription
scopeDefinedNameScope

Specifies the defined name’s scope.

|

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. 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

Name

CellRange Interface

CellRange Members

DevExpress.Spreadsheet Namespace