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

DomCR / ACadSharp / 17737836230

15 Sep 2025 03:12PM UTC coverage: 2.092% (-76.2%) from 78.245%
17737836230

push

github

web-flow
Merge pull request #790 from DomCR/addflag-refactor

addflag refactor

141 of 9225 branches covered (1.53%)

Branch coverage included in aggregate %.

0 of 93 new or added lines in 10 files covered. (0.0%)

24910 existing lines in 372 files now uncovered.

724 of 32119 relevant lines covered (2.25%)

5.76 hits per line

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

0.0
/src/ACadSharp/Entities/TableEntity.CellValue.cs
1
using ACadSharp.Attributes;
2

3
namespace ACadSharp.Entities
4
{
5
        public partial class TableEntity
6
        {
7
                public enum ValueUnitType
8
                {
9
                        /// <summary>
10
                        /// No units.
11
                        /// </summary>
12
                        NoUnits = 0,
13
                        /// <summary>
14
                        /// Distance.
15
                        /// </summary>
16
                        Distance = 1,
17
                        /// <summary>
18
                        /// Angle.
19
                        /// </summary>
20
                        Angle = 2,
21
                        /// <summary>
22
                        /// Area.
23
                        /// </summary>
24
                        Area = 4,
25
                        /// <summary>
26
                        /// Volumne.
27
                        /// </summary>
28
                        Volume = 8,
29
                        /// <summary>
30
                        /// Currency.
31
                        /// </summary>
32
                        Currency = 0x10,
33
                        /// <summary>
34
                        /// Percentage.
35
                        /// </summary>
36
                        Percentage = 0x20
37
                }
38

39
                public class CellValue
40
                {
UNCOV
41
                        public CellValueType ValueType { get; set; }
×
42

UNCOV
43
                        public ValueUnitType Units { get; set; }
×
44

UNCOV
45
                        public int Flags { get; set; }
×
46

47
                        public bool IsEmpty
48
                        {
49
                                get
UNCOV
50
                                {
×
UNCOV
51
                                        return (this.Flags & 1) != 0;
×
UNCOV
52
                                }
×
53
                                set
54
                                {
×
55
                                        if (value)
×
56
                                        {
×
57
                                                this.Flags |= 0b1;
×
58
                                        }
×
59
                                        else
60
                                        {
×
61
                                                this.Flags &= ~0b1;
×
62
                                        }
×
63
                                }
×
64
                        }
65

66
                        /// <summary>
67
                        /// Text string in a cell.
68
                        /// </summary>
69
                        [DxfCodeValue(1)]
UNCOV
70
                        public string Text { get; set; }
×
71

72
                        [DxfCodeValue(300)]
UNCOV
73
                        public string Format { get; set; }
×
74

75
                        [DxfCodeValue(302)]
UNCOV
76
                        public string FormatedValue { get; set; }
×
77

UNCOV
78
                        public object Value { get; set; }
×
79

80
                        public override string ToString()
81
                        {
×
82
                                return this.Value.ToString();
×
83
                        }
×
84
                }
85
        }
86
}
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