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

DomCR / ACadSharp / 12905761471

22 Jan 2025 10:03AM UTC coverage: 2.0% (-74.0%) from 75.963%
12905761471

push

github

DomCR
version 1.0.6

104 of 7676 branches covered (1.35%)

Branch coverage included in aggregate %.

590 of 27024 relevant lines covered (2.18%)

5.13 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
                {
41
                        public CellValueType ValueType { get; set; }
×
42

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

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

47
                        public bool IsEmpty
48
                        {
49
                                get
50
                                {
×
51
                                        return (this.Flags & 1) != 0;
×
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)]
70
                        public string Text { get; set; }
×
71

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

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

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