SuperMap.Connector.Control.Forms.Line.Line C# (CSharp) Method

Line() public method

构造函数。
public Line ( string id, List point2Ds, double strokeWeight, System strokeColor ) : System
id string 线对象的id,在同一个GraphicsLayer中不能存在相同idID的两个Line对象, /// 若已经存在一个相同的id对象,则新加入到GraphicsLayer中的Line对象将覆盖前一个Line对象。
point2Ds List 线坐标列表。
strokeWeight double 线宽度。
strokeColor System 线颜色。
return System
        public Line(string id, List<Point2D> point2Ds, double strokeWeight, System.Drawing.Color strokeColor)
        {
            if (string.IsNullOrWhiteSpace(id)) throw new ArgumentNullException();
            this._id = id;
            this._point2Ds = point2Ds;
            this._strokeWeight = strokeWeight;
            this._strokeColor = strokeColor;
            this._type = GeometryType.LINE;
        }
Line