Click or drag to resize

INameRanges Interface

A collection of all the Name objects in the application or workbook. Each Name object represents a defined name for a range of cells.

Namespace: Spire.Xls.Core
Assembly: Spire.XLS (in Spire.XLS.dll) Version: 15.4.0.0 (15.4.0.5046)
Syntax
public interface INameRanges : IEnumerable

The INameRanges type exposes the following members.

Properties
Name Description
Public property Count
Returns the number of objects in the collection. Read-only Long.
Public property Item Int32
Returns a single Name object from a Names collection.
Public property Item String
Returns a single Name object from a Names collection.
Public property Parent
Returns the parent object for the specified object.
Public property ParentWorksheet
Returns parent worksheet of the collection.
Top
Methods
Name Description
Public method Add(String)
Defines a new name.
Public method Add(INamedRange)
Defines a new name.
Public method Add(String, IXLSRange)
Defines a new name.
Public method Contains
Determines whether the Nameranges contains an element with the specified name.
Public method GetByName
Returns a single Name object from a Names collection.
Public method GetEnumerator
Returns an enumerator that iterates through a collection.
(Inherited from IEnumerable .)
Public method Remove
Removes Name object from the collection.
Public method RemoveAt
Removes the element at the specified index of the collection.
Top
See Also