Graphics/GraphicsPolyline.cs

(开头部分) 2KB

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

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;

namespace DrawingPad.Graphics
{
    public class GraphicsPolyline : GraphicsBase
    {
        #region 公开属性
        
        public override GraphicsType Type { get { return GraphicsType.Polyline; } }

        /// <summary>
        /// 折线的点列表
        /// </summary>
        public List<Point> PointList { get; set; }

        /// <summary>
        /// 该折线的终点坐标
        /// 箭头就要画在这个方向
        /// </summary>
        public Point Termination { get; set; }

        /// <summary>
        /// 被连接的第一个图形的ID
        /// 如果为空就说明没有
        /// 1 -> 2
        /// </summary>
        public string AssociatedGraphics1 { get; set; }

        /// <summary>
        /// 第一个图形的点的Location
        /// </summary>
        public int Graphics1Handle { get; set; }

        /// <summary>
        /// 被连接的第二个图形的ID
        /// 1 -> 2
        /// </summary>
        public string AssociatedGraphics2 { get; set; }

        /// <summary>
        /// 第二个图形的点的Location
        /// </summary>
        public int Graphics2Handle { get; set; }

        #endregion

        #region 构造方法

        public GraphicsPolyline()
        {
            this.PointList = new List<Point>();
        }

        #endregion

后面还有 55 行代码,解锁后查看完整代码

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

AI 解读 AI

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

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