コード例 #1
0
ファイル: DxfLeader.cs プロジェクト: yang5ping/dxf
        /// <summary>
        /// Creates a new leader entity with the specified vertices.  NOTE, at least 2 vertices must be specified.
        /// </summary>
        /// <exception cref="InvalidOperationException"/>
        /// <param name="vertices">The vertices to add.</param>
        public DxfLeader(IEnumerable <DxfPoint> vertices)
            : this()
        {
            foreach (var vertex in vertices)
            {
                _vertices.Add(vertex);
            }

            _vertices.ValidateCount();
        }
コード例 #2
0
ファイル: DxfLwPolyline.cs プロジェクト: tevfikoguz/dxf
        /// <summary>
        /// Creates a new LW polyline entity with the specified vertices.  NOTE, at least 2 vertices must be specified.
        /// </summary>
        /// <exception cref="InvalidOperationException"/>
        /// <param name="vertices">The vertices to add.</param>
        public DxfLwPolyline(IEnumerable <DxfLwPolylineVertex> vertices)
            : this()
        {
            foreach (var vertex in vertices)
            {
                _vertices.Add(vertex);
            }

            _vertices.ValidateCount();
        }