• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

DomCR / ACadSharp / 18679832337

21 Oct 2025 09:46AM UTC coverage: 77.883% (-0.2%) from 78.126%
18679832337

push

github

web-flow
Merge pull request #832 from DomCR/multileader-dxf

multileader dxf

6920 of 9695 branches covered (71.38%)

Branch coverage included in aggregate %.

341 of 429 new or added lines in 16 files covered. (79.49%)

77 existing lines in 8 files now uncovered.

26664 of 33426 relevant lines covered (79.77%)

110330.18 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

35.71
/src/ACadSharp/Objects/MultiLeaderObjectContextData.LeaderRoot.cs
1
using System;
2
using System.Collections.Generic;
3
using ACadSharp.Attributes;
4
using CSMath;
5

6
namespace ACadSharp.Objects
7
{
8
        public partial class MultiLeaderObjectContextData
9
        {
10
                /// <summary>
11
                /// Represents a leader root
12
                /// </summary>
13
                /// <remarks>
14
                /// Appears in DXF as 302 DXF: “LEADER“
15
                /// </remarks>
16
                public class LeaderRoot : ICloneable
17
                {
18
                        /// <summary>
19
                        /// Gets a list of <see cref="StartEndPointPair" />.
20
                        /// </summary>
21
                        public IList<StartEndPointPair> BreakStartEndPointsPairs { get; private set; } = new List<StartEndPointPair>();
5,612✔
22

23
                        /// <summary>
24
                        /// Connection point
25
                        /// </summary>
26
                        [DxfCodeValue(10, 20, 30)]
27
                        public XYZ ConnectionPoint { get; set; }
24,003✔
28

29
                        /// <summary>
30
                        /// Is content valid (ODA writes true)
31
                        /// </summary>
32
                        [DxfCodeValue(290)]
33
                        public bool ContentValid { get; set; }
5,608✔
34

35
                        /// <summary>
36
                        /// Direction
37
                        /// </summary>
38
                        [DxfCodeValue(11, 21, 31)]
39
                        public XYZ Direction { get; set; }
24,003✔
40

41
                        /// <summary>
42
                        /// Landing distance
43
                        /// </summary>
44
                        [DxfCodeValue(40)]
45
                        public double LandingDistance { get; set; }
6,003✔
46

47
                        /// <summary>
48
                        /// Leader index
49
                        /// </summary>
50
                        [DxfCodeValue(90)]
51
                        public int LeaderIndex { get; set; }
5,994✔
52

53
                        /// <summary>
54
                        /// Gets a list of <see cref="LeaderLine"/> objects representing
55
                        /// leader lines starting from the landing point
56
                        /// of the multi leader.
57
                        /// </summary>
58
                        public IList<LeaderLine> Lines { get; private set; } = new List<LeaderLine>();
17,815✔
59

60
                        //R2010
61
                        /// <summary>
62
                        /// Attachment direction
63
                        /// </summary>
64
                        [DxfCodeValue(271)]
65
                        public TextAttachmentDirectionType TextAttachmentDirection { get; set; }
2,658✔
66

67
                        /// <summary>
68
                        /// Unknown (ODA writes true)
69
                        /// </summary>
70
                        [DxfCodeValue(291)]
71
                        public bool Unknown { get; set; }
5,595✔
72

73
                        public LeaderRoot() { }
16,812✔
74

75
                        public object Clone()
NEW
76
                        {
×
NEW
77
                                LeaderRoot clone = (LeaderRoot)base.MemberwiseClone();
×
78

NEW
79
                                clone.BreakStartEndPointsPairs = new List<StartEndPointPair>();
×
NEW
80
                                foreach (var breakStartEndPoint in this.BreakStartEndPointsPairs)
×
NEW
81
                                {
×
NEW
82
                                        clone.BreakStartEndPointsPairs.Add((StartEndPointPair)breakStartEndPoint.Clone());
×
NEW
83
                                }
×
84

NEW
85
                                clone.Lines = new List<LeaderLine>();
×
NEW
86
                                foreach (var line in this.Lines)
×
NEW
87
                                {
×
NEW
88
                                        clone.Lines.Add((LeaderLine)line.Clone());
×
NEW
89
                                }
×
90

NEW
91
                                return clone;
×
NEW
92
                        }
×
93
                }
94
        }
95
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc