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

DomCR / ACadSharp / 10546434957

25 Aug 2024 11:09AM UTC coverage: 75.832% (-0.2%) from 75.987%
10546434957

push

github

web-flow
Merge pull request #428 from DomCR/UnknownNonGraphicalObject

Unknown None Graphical Object

4853 of 7047 branches covered (68.87%)

Branch coverage included in aggregate %.

54 of 62 new or added lines in 11 files covered. (87.1%)

69 existing lines in 25 files now uncovered.

19285 of 24784 relevant lines covered (77.81%)

33698.64 hits per line

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

95.24
/src/ACadSharp/Objects/MLineStyle.cs
1
using ACadSharp.Attributes;
2
using System.Collections.Generic;
3

4
namespace ACadSharp.Objects
5
{
6
        /// <summary>
7
        /// Represents a <see cref="MLineStyle"/> object
8
        /// </summary>
9
        /// <remarks>
10
        /// Object name <see cref="DxfFileToken.ObjectMLineStyle"/> <br/>
11
        /// Dxf class name <see cref="DxfSubclassMarker.MLineStyle"/>
12
        /// </remarks>
13
        [DxfName(DxfFileToken.ObjectMLineStyle)]
14
        [DxfSubClass(DxfSubclassMarker.MLineStyle)]
15
        public partial class MLineStyle : NonGraphicalObject
16
        {
17
                /// <summary>
18
                /// Default multiline style name
19
                /// </summary>
20
                public const string DefaultName = "Standard";
21

22
                /// <summary>
23
                /// Gets the default MLine style
24
                /// </summary>
25
                public static MLineStyle Default { get { return new MLineStyle(DefaultName); } }
2,148✔
26

27
                /// <inheritdoc/>
28
                public override ObjectType ObjectType => ObjectType.MLINESTYLE;
76✔
29

30
                /// <inheritdoc/>
31
                public override string ObjectName => DxfFileToken.ObjectMLineStyle;
25✔
32

33
                /// <inheritdoc/>
UNCOV
34
                public override string SubclassMarker => DxfSubclassMarker.MLineStyle;
×
35

36
                /// <summary>
37
                /// Mline style name
38
                /// </summary>
39
                [DxfCodeValue(2)]
40
                public override string Name
41
                {
42
                        get
43
                        {
1,503✔
44
                                return base.Name;
1,503✔
45
                        }
1,503✔
46
                        set
47
                        {
823✔
48
                                base.Name = value;
823✔
49
                        }
823✔
50
                }
51

52
                /// <summary>
53
                /// Multi line style flags
54
                /// </summary>
55
                [DxfCodeValue(70)]
56
                public MLineStyleFlags Flags { get; set; }
329✔
57

58
                /// <summary>
59
                /// Style description
60
                /// </summary>
61
                /// <value>
62
                /// 255 characters maximum
63
                /// </value>
64
                [DxfCodeValue(3)]
65
                public string Description { get; set; }
170✔
66

67
                /// <summary>
68
                /// Fill color
69
                /// </summary>
70
                [DxfCodeValue(62)]
71
                public Color FillColor { get; set; } = Color.ByLayer;
993✔
72

73
                /// <summary>
74
                /// Start angle
75
                /// </summary>
76
                [DxfCodeValue(DxfReferenceType.IsAngle, 51)]
77
                public double StartAngle { get; set; } = System.Math.PI / 2;
993✔
78

79
                /// <summary>
80
                /// End angle
81
                /// </summary>
82
                [DxfCodeValue(DxfReferenceType.IsAngle, 52)]
83
                public double EndAngle { get; set; } = System.Math.PI / 2;
993✔
84

85
                /// <summary>
86
                /// Elements in the style
87
                /// </summary>
88
                [DxfCodeValue(DxfReferenceType.Count, 71)]
89
                public List<MLineStyle.Element> Elements { get; } = new List<Element>();
1,185✔
90

91
                internal MLineStyle() { }
321✔
92

93
                public MLineStyle(string name)
716✔
94
                {
716✔
95
                        this.Name = name;
716✔
96
                }
716✔
97
        }
98
}
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

© 2026 Coveralls, Inc