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

DomCR / ACadSharp / 19269943512

11 Nov 2025 03:11PM UTC coverage: 78.156% (+0.2%) from 78.002%
19269943512

push

github

web-flow
Merge pull request #831 from DomCR/table-entity-refactor

Table entity refactor

7383 of 10235 branches covered (72.13%)

Branch coverage included in aggregate %.

731 of 859 new or added lines in 16 files covered. (85.1%)

14 existing lines in 4 files now uncovered.

27606 of 34533 relevant lines covered (79.94%)

98649.31 hits per line

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

80.0
/src/ACadSharp/Entities/TableEntity.Cell.cs
1
using ACadSharp.Attributes;
2
using System.Collections.Generic;
3
using System.Linq;
4

5
namespace ACadSharp.Entities
6
{
7
        public partial class TableEntity
8
        {
9
                public class Cell
10
                {
11
                        /// <summary>
12
                        /// Boolean flag indicating if the auto fit option is set for the cell.
13
                        /// </summary>
14
                        [DxfCodeValue(174)]
15
                        public bool AutoFit { get; set; }
9,840✔
16

17
                        /// <summary>
18
                        /// Cell border height.
19
                        /// </summary>
20
                        /// <remarks>
21
                        /// Applicable only for merged cells.
22
                        /// </remarks>
23
                        [DxfCodeValue(176)]
24
                        public int BorderHeight { get; set; }
9,840✔
25

26
                        /// <summary>
27
                        /// Cell border width.
28
                        /// </summary>
29
                        /// <remarks>
30
                        /// Applicable only for merged cells.
31
                        /// </remarks>
32
                        [DxfCodeValue(175)]
33
                        public int BorderWidth { get; set; }
9,840✔
34

35
                        public CellContent Content
36
                        {
37
                                get
38
                                {
9✔
39
                                        if (this.Contents == null || this.HasMultipleContent)
9!
NEW
40
                                        {
×
NEW
41
                                                return null;
×
42
                                        }
43
                                        else
44
                                        {
9✔
45
                                                return this.Contents.FirstOrDefault();
9✔
46
                                        }
47
                                }
9✔
48
                        }
49

50
                        public List<CellContent> Contents { get; } = new();
27,170✔
51

52
                        [DxfCodeValue(91)]
53
                        public int CustomData { get; set; }
15,257✔
54

55
                        public List<CustomDataEntry> CustomDataCollection { get; set; } = new();
20,841✔
56

57
                        /// <summary>
58
                        /// Cell flag value.
59
                        /// </summary>
60
                        [DxfCodeValue(172)]
61
                        public int FlagValue { get; set; }
9,840✔
62

63
                        public CellContentGeometry Geometry { get; set; }
3,990✔
64

65
                        [DxfCodeValue(92)]
66
                        public bool HasLinkedData { get; set; }
11,666✔
67

68
                        public bool HasMultipleContent
69
                        {
70
                                get
71
                                {
18✔
72
                                        if (this.Contents == null)
18!
73
                                        {
×
74
                                                return false;
×
75
                                        }
76

77
                                        return this.Contents.Count > 1;
18✔
78
                                }
18✔
79
                        }
80

81
                        /// <summary>
82
                        /// Cell merged value.
83
                        /// </summary>
84
                        [DxfCodeValue(173)]
85
                        public int MergedValue { get; set; }
9,840✔
86

87
                        /// <summary>
88
                        /// Rotation value.
89
                        /// </summary>
90
                        /// <remarks>
91
                        /// Applicable for a block-type cell and a text-type cell.
92
                        /// </remarks>
93
                        [DxfCodeValue(145)]
94
                        public double Rotation { get; set; }
9,840✔
95

96
                        [DxfCodeValue(90)]
97
                        public TableCellStateFlags StateFlags { get; set; }
15,105✔
98

99
                        public CellStyle StyleOverride { get; set; } = new();
35,050✔
100

101
                        [DxfCodeValue(300)]
102
                        public string ToolTip { get; set; }
8,721✔
103

104
                        /// <summary>
105
                        /// Cell type.
106
                        /// </summary>
107
                        [DxfCodeValue(171)]
108
                        public CellType Type { get; set; }
9,840✔
109

110
                        /// <summary>
111
                        /// Flag value for a virtual edge.
112
                        /// </summary>
113
                        [DxfCodeValue(178)]
114
                        public short VirtualEdgeFlag { get; set; }
9,840✔
115
                }
116
        }
117
}
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