Source/GroupItem.cs

(开头部分) 11KB

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

//using System;
//using System.ComponentModel;
//using System.Drawing;
//
//namespace DevComponents.DotNetBar
//{
//	/// <summary>
//	/// Represents container item which contains it's subitems and arranges them vertically.
//	/// </summary>
//	public class GroupItem:ImageItem,IContainerWordWrap
//	{
//		#region Private Variables
//		private bool m_WordWrapSubItems=false;
//		private int m_ContentLeftIndentation=0;
//		private int m_ContentRightIndentation=0;
//		private int m_ItemSpacing=0;
//		private Rectangle m_HeaderRect=Rectangle.Empty;
//
//		// Expand/Collapse button image
//		private Image m_ButtonExpand=null;
//		private Image m_ButtonCollapse=null;
//		private eItemAlignment m_ExpandButtonAlignment=eItemAlignment.Near;
//		private bool m_ExpandButtonVisible=true;
//
//		// Image support
//		private System.Drawing.Image m_Image=null;
//		private int m_ImageIndex=-1; // Image index if image from ImageList is used
//		private System.Drawing.Image m_ImageCachedIdx=null;
//		#endregion
//
//		#region Constructor
//		/// <summary>
//		/// Creates new instance of VerticalGroupItem.
//		/// </summary>
//		public GroupItem():this("","") {}
//		/// <summary>
//		/// Creates new instance of VerticalGroupItem and assigns the name to it.
//		/// </summary>
//		/// <param name="sItemName">Item name.</param>
//		public GroupItem(string sItemName):this(sItemName,"") {}
//		/// <summary>
//		/// Creates new instance of VerticalGroupItem and assigns the name and text to it.
//		/// </summary>
//		/// <param name="sItemName">Item name.</param>
//		/// <param name="ItemText">item text.</param>
//		public GroupItem(string sItemName, string ItemText):base(sItemName,ItemText)
//		{
//			m_IsContainer=true;
//			m_AllowOnlyOneSubItemExpanded=false;
////			try
////			{
////				m_HeaderStyle.Font=new Font(System.Windows.Forms.SystemInformation.MenuFont,FontStyle.Bold);
////				m_HeaderHotStyle.Font=new Font(System.Windows.Forms.SystemInformation.MenuFont,FontStyle.Bold);
////			}
////			catch(Exception e)
////			{
////				#if DEBUG
////				throw(e);
////				#endif
////				m_HeaderStyle.Font=System.Windows.Forms.SystemInformation.MenuFont.Clone() as Font;
后面还有 292 行代码,解锁后查看完整代码

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

AI 解读 AI

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

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