DrawToolsRedux/DrawConnector.cs
(开头部分) 7KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections;
using System.Drawing;
using System.Drawing.Drawing2D;
using System.Globalization;
using System.Runtime.Serialization;
using System.Windows.Forms;
namespace DrawTools
{
/// <summary>
/// Connector graphic object - a Connector is a series of connected straight lines
/// where each line is drawn individually and at least
/// one of the ends is anchored to another object
/// </summary>
//[Serializable]
public class DrawConnector : DrawLine
{
// Connector-specific fields
private LineCap startCap = LineCap.NoAnchor;
private LineCap endCap = LineCap.ArrowAnchor;
private bool startIsAnchored = false;
private bool endIsAnchored = false;
private int startObjectId = -1;
private int endObjectId = -1;
// Last Segment start and end points
private Point startPoint;
private Point endPoint;
private ArrayList pointArray; // list of points
private Cursor handleCursor;
private const string entryLength = "Length";
private const string entryPoint = "Point";
public LineCap StartCap
{
get { return startCap; }
set { startCap = value; }
}
public LineCap EndCap
{
get { return endCap; }
set { endCap = value; }
}
public bool StartIsAnchored
{
get { return startIsAnchored; }
set { startIsAnchored = value; }
}
public bool EndIsAnchored
{
get { return endIsAnchored; }
set { endIsAnchored = value; }
}
后面还有 259 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。