Esempio n. 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;
		}
Esempio n. 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);
		}
Esempio n. 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;
		}