Stores visual appearance related properties for a Row
示例#1
0
文件: Row.cs 项目: unixcrh/Motion
        /// <summary>
        /// Releases all resources used by the Row
        /// </summary>
        public void Dispose()
        {
            if (!this.disposed)
            {
                this.tag = null;

                if (this.tableModel != null)
                {
                    this.tableModel.Rows.Remove(this);
                }

                this.tableModel = null;
                this.index      = -1;

                if (this.cells != null)
                {
                    Cell cell;

                    for (int i = 0; i < this.cells.Count; i++)
                    {
                        cell = this.cells[i];

                        cell.InternalRow = null;
                        cell.Dispose();
                    }

                    this.cells = null;
                }

                this.rowStyle = null;
                this.state    = (byte)0;

                this.disposed = true;
            }
        }
示例#2
0
文件: Row.cs 项目: unixcrh/Motion
        /// <summary>
        /// Initialise default values
        /// </summary>
        private void Init()
        {
            this.cells = null;

            this.tag               = null;
            this.tableModel        = null;
            this.index             = -1;
            this.rowStyle          = null;
            this.selectedCellCount = 0;
            this.hasWordWrapCell   = false;
            this.wordWrapIndex     = 0;
            this.height            = -1;

            this.state = (byte)(STATE_EDITABLE | STATE_ENABLED | STATE_VISIBLE);
        }
示例#3
0
文件: Row.cs 项目: zhuangyy/Motion
        /// <summary>
        /// Releases all resources used by the Row
        /// </summary>
        public void Dispose()
        {
            if (!this.disposed)
            {
                this.tag = null;

                if (this.tableModel != null)
                {
                    this.tableModel.Rows.Remove(this);
                }

                this.tableModel = null;
                this.index = -1;

                if (this.cells != null)
                {
                    Cell cell;

                    for (int i = 0; i < this.cells.Count; i++)
                    {
                        cell = this.cells[i];

                        cell.InternalRow = null;
                        cell.Dispose();
                    }

                    this.cells = null;
                }

                this.rowStyle = null;
                this.state = (byte)0;

                this.disposed = true;
            }
        }
示例#4
0
文件: Row.cs 项目: zhuangyy/Motion
        /// <summary>
        /// Initialise default values
        /// </summary>
        private void Init()
        {
            this.cells = null;

            this.tag = null;
            this.tableModel = null;
            this.index = -1;
            this.rowStyle = null;
            this.selectedCellCount = 0;
            this.hasWordWrapCell = false;
            this.wordWrapIndex = 0;
            this.height = -1;

            this.state = (byte)(STATE_EDITABLE | STATE_ENABLED | STATE_VISIBLE);
        }