Exemple #1
0
		/// <summary>
		/// Sets the Images to the new CellImages object.
		/// </summary>
		/// <param name="ci">CellImages object.</param>
		internal void SetCellImages(CellImages ci)
		{
			m_Images=ci;
			m_Images.Parent=this;
		}
Exemple #2
0
		/// <summary>
		/// Initializes new instance of Cell class.
		/// </summary>
		/// <param name="text">Cell text.</param>
		public Cell(string text)
		{
			Text=text;
			m_Images=new CellImages(this);
		}
Exemple #3
0
		/// <summary>Makes a copy of a CellImages object.</summary>
		public virtual CellImages Copy()
		{
			CellImages ci=new CellImages(null);
			ci.Image=this.Image;
//			ci.ImageDisabled=this.ImageDisabled;
//			ci.ImageDisabledIndex=this.ImageDisabledIndex;
		    ci.ImageExpanded = this.ImageExpanded == null ? null : (Image) this.ImageExpanded.Clone();
			ci.ImageExpandedIndex=this.ImageExpandedIndex;
			ci.ImageIndex=this.ImageIndex;
			ci.ImageMouseOver=this.ImageMouseOver == null? null : (Image)this.ImageMouseOver.Clone();
			ci.ImageMouseOverIndex=this.ImageMouseOverIndex;
            ci.ImageDisabledKey = this.ImageDisabledKey;
            ci.ImageExpandedKey = this.ImageExpandedKey;
            ci.ImageKey = this.ImageKey;
            ci.ImageMouseOverKey = this.ImageMouseOverKey;
			return ci;
		}