コード例 #1
0
		public NodeMapLayout(TreeGX treeControl, Rectangle clientArea):base(treeControl,clientArea)
		{
		}
コード例 #2
0
		//private bool m_LayoutPerformed=false;

		public NodeTreeLayout(TreeGX treeControl, Rectangle clientArea):base(treeControl,clientArea)
		{
			ExpandPartSize=new Size(9,9);
		}
コード例 #3
0
		/// <summary>
		/// Creates new instance of the class and initializes it with default values.
		/// </summary>
		/// <param name="g">Reference to graphics object.</param>
		public TreeBackgroundRendererEventArgs(Graphics g, TreeGX tree)
		{
			this.Graphics = g;
			this.TreeGX = tree;
		}
コード例 #4
0
		/// <summary>Creates new instance of the class</summary>
		/// <param name="tree">Object to initialize class with.</param>
		public NodeDisplay(TreeGX tree)
		{
			m_Tree=tree;
		}
コード例 #5
0
		/// <summary>Creates new instance of the class</summary>
		/// <param name="tree">Object to initialize class with.</param>
		public NodeTreeDisplay(TreeGX tree):base(tree)
		{
		}
コード例 #6
0
		public NodeLayout(TreeGX treeControl, Rectangle clientArea)
		{
			m_Tree=treeControl;
			m_ClientArea=clientArea;
		}
コード例 #7
0
		public static Font GetCellFont(TreeGX tree, Cell cell)
		{
			Font font=tree.Font;
			ElementStyle style=null;
			
			if(cell.StyleNormal!=null)
			{
				style=cell.StyleNormal;
			}
			else
			{
				if(tree.NodeStyle!=null)
					style=tree.NodeStyle;
				else
					style=new ElementStyle();

				if(tree.CellStyleDefault!=null)
					style=tree.CellStyleDefault;
				else
					style=ElementStyle.GetDefaultCellStyle(style);
			}

			if(style!=null && style.Font!=null)
				font=style.Font;

			return font;
		}