Пример #1
0
		/// <summary>Makes a copy of a Cell.</summary>
		public virtual Cell Copy()
		{
			// TODO: Make sure that new properties are copied
			Cell c=new Cell();
			c.CheckBoxAlignment=this.CheckBoxAlignment;
			c.CheckBoxVisible=this.CheckBoxVisible;
            c.CheckBoxStyle = this.CheckBoxStyle;
            if (this.CheckBoxThreeState)
                c.CheckState = this.CheckState;
            else
			    c.Checked=this.Checked;
			c.Cursor=this.Cursor;
			c.Enabled=this.Enabled;
			c.ImageAlignment=this.ImageAlignment;
			c.SetCellImages(this.Images.Copy());
			c.Layout=this.Layout;
			c.StyleDisabled=this.StyleDisabled;
			c.StyleMouseDown=this.StyleMouseDown;
			c.StyleMouseOver=this.StyleMouseOver;
			c.StyleNormal=this.StyleNormal;
			c.StyleSelected=this.StyleSelected;
			c.Tag=this.Tag;
			c.Text=this.Text;
            c.Editable = this.Editable;
            c.EditorType = this.EditorType;


			return c;
		}