namespace com.azkoss.excellite { using System; /// ///Represents a named range in the worksheet. /// public class NamedRange { // Methods /// ///Initializes a new instance of the class. /// ///Parent collection. ///Index in the parrent collection. ///The cell range name. ///The named cell range. internal NamedRange(NamedRangeCollection parent, int index, string name, CellRange range) { this.parent = parent; this.index = index; this.name = name; this.range = range; } /// ///Deletes this named range from the named ranges collection. /// public void Delete() { this.parent.DeleteInternal(this.index); } // Properties /// ///Gets the named range name. /// ///The named range name. public string Name { get { return this.name; } } /// ///Gets the named cell range. /// ///The named cell range. public CellRange Range { get { return this.range; } } // Fields private int index; private string name; private NamedRangeCollection parent; private CellRange range; } }