Source/AdvTree/CellImages.cs

(开头部分) 12KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

using System;
using System.Drawing;
using System.ComponentModel;
using DevComponents.DotNetBar;

namespace DevComponents.AdvTree
{
	/// <summary>
	/// Represents class that holds images for a cell.
	/// </summary>
	/// <remarks>
	/// If you plan to use alpha-blended images we recommend using PNG-24 format which
	/// supports alpha-blending. As of this writing .NET Framework 1.0 and 1.1 do not support
	/// alpha-blending when used through Image class.
	/// </remarks>
	[ToolboxItem(false), TypeConverter(typeof(System.ComponentModel.ExpandableObjectConverter))]
	public class CellImages
	{
		// Image variables
		private System.Drawing.Image m_Image=null;
        private System.Drawing.Image m_DisabledImageGenerated = null;
		private int m_ImageIndex=-1; // Image index if image from ImageList is used
		private System.Drawing.Image m_ImageMouseOver=null;
		private int m_ImageMouseOverIndex=-1; // Image index if image from ImageList is used
		private System.Drawing.Image m_ImageDisabled=null;
//		private bool m_DisabledImageCustom=false;
		private int m_ImageDisabledIndex=-1; // Image index if image from ImageList is used
		private System.Drawing.Image m_ImageExpanded=null;
		private int m_ImageExpandedIndex=-1;
		private Cell m_ParentCell=null;
		private Size m_LargestImageSize=Size.Empty;

		/// <summary>
		/// Initializes new instance of CellImages class.
		/// </summary>
		/// <param name="parentCell">Reference to parent cell.</param>
		public CellImages(Cell parentCell)
		{
			m_ParentCell=parentCell;
		}

		#region Properties

        internal System.Drawing.Image DisabledImageGenerated
        {
            get { return m_DisabledImageGenerated; }
            set
            {
                m_DisabledImageGenerated = value;
            }
        }

		/// <summary>
		/// Gets or sets default cell image. Setting this property to valid image will
		/// override any setting of ImageIndex property.
		/// </summary>
		/// <remarks>
		/// 	<para>The image set through this property will be serialized with the cell. If you
		///     plan to use ImageList then use <see cref="ImageIndex">ImageIndex</see>
		///     property.</para>
后面还有 329 行代码,解锁后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。