コード例 #1
0
        /// <summary>
        /// 释放
        /// Releases all resources used by the Cell
        /// </summary>
        public void Dispose()
        {
            if (!this.disposed)
            {
                this.data         = null;
                this.tag          = null;
                this.rendererData = null;

                if (this.row != null)
                {
                    this.row.Cells.Remove(this);
                }

                this.row         = null;
                this.index       = -1;
                this.cellStyle   = null;
                this.checkStyle  = null;
                this.imageStyle  = null;
                this.tooltipText = null;

                this.state = (byte)0;

                this.disposed = true;
            }
        }
コード例 #2
0
        /// <summary>
        /// 根据文本、CellStyle构造Cell
        /// Initializes a new instance of the Cell class with the specified text
        /// and CellStyle
        /// </summary>
        /// <param name="text">The text displayed in the Cell</param>
        /// <param name="cellStyle">A CellStyle that specifies the visual appearance
        /// of the Cell</param>
        public I3Cell(object data, I3CellStyle cellStyle)
        {
            this.Init();

            this.data      = data;
            this.cellStyle = cellStyle;
        }
コード例 #3
0
        /// <summary>
        /// 对属性赋初始值
        /// Initialise default values
        /// </summary>
        private void Init()
        {
            this.data         = null;
            this.rendererData = null;
            this.tag          = null;
            this.userData     = null;
            this.row          = null;
            this.index        = -1;
            this.cellStyle    = null;
            this.checkStyle   = null;
            this.imageStyle   = null;
            this.tooltipText  = null;

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