Beispiel #1
0
        /// <summary>
        /// Returns a Collection of cells that represents the current class
        /// </summary>
        /// <returns></returns>
        public virtual PositionCollection GetCellsPositions()
        {
            PositionCollection positions = new PositionCollection();

            //Range
            for (int i = 0; i < m_RangeCollection.Count; i++)
            {
                positions.AddRange(m_RangeCollection[i].GetCellsPositions());
            }

            return(positions);
        }
Beispiel #2
0
        /// <summary>
        /// Returns a Collection of cells that represents the current class
        /// </summary>
        /// <returns></returns>
        public virtual PositionCollection GetCellsPositions()
        {
            PositionCollection positions = new PositionCollection();

            //Range
            for (int i = 0; i < m_RangeCollection.Count; i++)
            {
                positions.AddRange( m_RangeCollection[i].GetCellsPositions() );
            }

            return positions;
        }