Source/AdvTree/NodeConnector.cs

(开头部分) 7KB

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

using System;
using System.Drawing;
using System.ComponentModel;
using System.Drawing.Drawing2D;

namespace DevComponents.AdvTree
{
	/// <summary>
	/// Represents node connector. Node connector is the line that is drawn to indicate connection between child and parent node.
	/// </summary>
	[ToolboxItem(false),System.ComponentModel.DesignTimeVisible(false),TypeConverter(typeof(System.ComponentModel.ExpandableObjectConverter))]
	public class NodeConnector:Component
	{
		#region Private Variables
		private int m_LineWidth=1;
		private Color m_LineColor=SystemColors.Highlight;
		private eNodeConnectorType m_ConnectorType=eNodeConnectorType.Line;
		//private bool m_UnderlineNoBorderNode=true;
		//private eConnectorCap m_EndCap=eConnectorCap.Ellipse;
		//private eConnectorCap m_StartCap=eConnectorCap.None;
		//private Size m_EndCapSize=new Size(5,5);
		//private Size m_StartCapSize=new Size(5,5);
		#endregion

		#region Events
		/// <summary>
		/// Occurs when appearance of the connector has changed as result of changed settings on the connector.
		/// </summary>
		public event EventHandler AppearanceChanged;
		#endregion

		#region Public Interface
		/// <summary>
		/// Default Constructor.
		/// </summary>
		public NodeConnector()
		{
		}

		/// <summary>
		/// Creates new instance of the object with specified parameters.
		/// </summary>
		/// <param name="lineWidth">Connector line width.</param>
		/// <param name="type">Connector type.</param>
		public NodeConnector(int lineWidth, eNodeConnectorType type)
		{
			this.LineWidth=lineWidth;
			this.ConnectorType=type;
		}

		/// <summary>
		/// Gets or sets the connector line width.
		/// </summary>
		[Browsable(true),DefaultValue(1),Category("Appearance"),Description("Indicates connector line width.")]
		public int LineWidth
		{
			get {return m_LineWidth;}
			set 
			{
				m_LineWidth=value;
后面还有 155 行代码,解锁后查看完整代码

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

AI 解读 AI

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

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